⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hybean.java

📁 STRUTS数据库项目开发宝典
💻 JAVA
字号:
package org.helpsoft.entity.hy;

import java.io.Serializable;
import com.helpsoft.util.log.*;

import org.helpsoft.entity.hyklx.*;
import org.helpsoft.entity.hyxf.*;

/**
 * The Hy entity bean.
 *
 * @author cao guangxin - www.relationinfo.com
 *
 * @hibernate.class
 *         table="hy"
 */
public class HyBean implements Serializable, HyIf {

   /**
    * The logger object.
    */
   private static Logger log = LogService.getLogger(HyBean.class);

   private HyklxBean hykmmHyklx;


   private java.lang.String hykh;
   private java.lang.String hyxm;
   private java.lang.String kdjb;
   private java.lang.String dqzt;
   private java.lang.String hyjf;
   private java.lang.String bz;
   private java.lang.String hyxb;
   private java.lang.String csrq;
   private java.lang.String dwzy;
   private java.lang.String yddh;
   private java.lang.String gddh;
   private java.lang.String dzyj;
   private java.lang.String zjlx;
   private java.lang.String lxdz;
   private java.lang.String qtxx;

   /**
    * Default constructor.
    */
   public HyBean() {
   }

   /**
    * Value object constructor.
    */
   public HyBean(org.helpsoft.entity.hy.HyIf value) {
      setHykh(value.getHykh());
      setHykmm(value.getHykmm());
      setHyxm(value.getHyxm());
      setKdjb(value.getKdjb());
      setDqzt(value.getDqzt());
      setHyjf(value.getHyjf());
      setBz(value.getBz());
      setHyxb(value.getHyxb());
      setCsrq(value.getCsrq());
      setDwzy(value.getDwzy());
      setYddh(value.getYddh());
      setGddh(value.getGddh());
      setDzyj(value.getDzyj());
      setZjlx(value.getZjlx());
      setLxdz(value.getLxdz());
      setQtxx(value.getQtxx());
   }

   /**
    * Creates a new bean and returns the primary key.
    * If the primary key of the value object has been set, this key will be used.
    * If the primary key is set to null, Hibernate's increment id generator is used for integers and longs
    * and the uuid.hex generator for strings.
    *
    * @param value a <code>HyIf</code>
    * @return the primary key for this Hy
    */
   public java.lang.String create(org.helpsoft.entity.hy.HyIf value) {
      setHykh(value.getHykh());
      setHyxm(value.getHyxm());
      setKdjb(value.getKdjb());
      setDqzt(value.getDqzt());
      setHyjf(value.getHyjf());
      setBz(value.getBz());
      setHyxb(value.getHyxb());
      setCsrq(value.getCsrq());
      setDwzy(value.getDwzy());
      setYddh(value.getYddh());
      setGddh(value.getGddh());
      setDzyj(value.getDzyj());
      setZjlx(value.getZjlx());
      setLxdz(value.getLxdz());
      setQtxx(value.getQtxx());
      setHykmm(value.getHykmm());
      return value.getPrimaryKey();
   }

    /**
     * Return the primary key.
     *
     * @return java.lang.String with the primary key.
     */
   public java.lang.String getPrimaryKey() {
        return getHykh();
    }

    /**
     * Set the primary key.
     *
     * @param primaryKey the primary key
     */
   public void setPrimaryKey(java.lang.String primaryKey) {
       setHykh(primaryKey);
    }

   /**
    * Returns the value of the <code>hykh</code> property.
    *
    * @hibernate.id
    * generator-class="uuid.hex"
    * length="33"
    * column="hykh"
    */
   public java.lang.String getHykh() {
      return hykh;
   }

   /**
    * Sets the value of the <code>hykh</code> property.
    *
    * @param hykh the value for the <code>hykh</code> property
    */
   public void setHykh(java.lang.String hykh) {
      this.hykh = hykh;
   }

   /**
    * Returns the value of the <code>hyxm</code> property.
    *
    * @hibernate.property
    * length="30"
    * column="hyxm"
    */
   public java.lang.String getHyxm() {
      return hyxm;
   }

   /**
    * Sets the value of the <code>hyxm</code> property.
    *
    * @param hyxm the value for the <code>hyxm</code> property
    */
   public void setHyxm(java.lang.String hyxm) {
      this.hyxm = hyxm;
   }

   /**
    * Returns the value of the <code>kdjb</code> property.
    *
    * @hibernate.property
    * length="5"
    * column="kdjb"
    */
   public java.lang.String getKdjb() {
      return kdjb;
   }

   /**
    * Sets the value of the <code>kdjb</code> property.
    *
    * @param kdjb the value for the <code>kdjb</code> property
    */
   public void setKdjb(java.lang.String kdjb) {
      this.kdjb = kdjb;
   }

   /**
    * Returns the value of the <code>dqzt</code> property.
    *
    * @hibernate.property
    * length="10"
    * column="dqzt"
    */
   public java.lang.String getDqzt() {
      return dqzt;
   }

   /**
    * Sets the value of the <code>dqzt</code> property.
    *
    * @param dqzt the value for the <code>dqzt</code> property
    */
   public void setDqzt(java.lang.String dqzt) {
      this.dqzt = dqzt;
   }

   /**
    * Returns the value of the <code>hyjf</code> property.
    *
    * @hibernate.property
    * length="10"
    * column="hyjf"
    */
   public java.lang.String getHyjf() {
      return hyjf;
   }

   /**
    * Sets the value of the <code>hyjf</code> property.
    *
    * @param hyjf the value for the <code>hyjf</code> property
    */
   public void setHyjf(java.lang.String hyjf) {
      this.hyjf = hyjf;
   }

   /**
    * Returns the value of the <code>bz</code> property.
    *
    * @hibernate.property
    * length="255"
    * column="bz"
    */
   public java.lang.String getBz() {
      return bz;
   }

   /**
    * Sets the value of the <code>bz</code> property.
    *
    * @param bz the value for the <code>bz</code> property
    */
   public void setBz(java.lang.String bz) {
      this.bz = bz;
   }

   /**
    * Returns the value of the <code>hyxb</code> property.
    *
    * @hibernate.property
    * length="5"
    * column="hyxb"
    */
   public java.lang.String getHyxb() {
      return hyxb;
   }

   /**
    * Sets the value of the <code>hyxb</code> property.
    *
    * @param hyxb the value for the <code>hyxb</code> property
    */
   public void setHyxb(java.lang.String hyxb) {
      this.hyxb = hyxb;
   }

   /**
    * Returns the value of the <code>csrq</code> property.
    *
    * @hibernate.property
    * length="30"
    * column="csrq"
    */
   public java.lang.String getCsrq() {
      return csrq;
   }

   /**
    * Sets the value of the <code>csrq</code> property.
    *
    * @param csrq the value for the <code>csrq</code> property
    */
   public void setCsrq(java.lang.String csrq) {
      this.csrq = csrq;
   }

   /**
    * Returns the value of the <code>dwzy</code> property.
    *
    * @hibernate.property
    * length="30"
    * column="dwzy"
    */
   public java.lang.String getDwzy() {
      return dwzy;
   }

   /**
    * Sets the value of the <code>dwzy</code> property.
    *
    * @param dwzy the value for the <code>dwzy</code> property
    */
   public void setDwzy(java.lang.String dwzy) {
      this.dwzy = dwzy;
   }

   /**
    * Returns the value of the <code>yddh</code> property.
    *
    * @hibernate.property
    * length="20"
    * column="yddh"
    */
   public java.lang.String getYddh() {
      return yddh;
   }

   /**
    * Sets the value of the <code>yddh</code> property.
    *
    * @param yddh the value for the <code>yddh</code> property
    */
   public void setYddh(java.lang.String yddh) {
      this.yddh = yddh;
   }

   /**
    * Returns the value of the <code>gddh</code> property.
    *
    * @hibernate.property
    * length="20"
    * column="gddh"
    */
   public java.lang.String getGddh() {
      return gddh;
   }

   /**
    * Sets the value of the <code>gddh</code> property.
    *
    * @param gddh the value for the <code>gddh</code> property
    */
   public void setGddh(java.lang.String gddh) {
      this.gddh = gddh;
   }

   /**
    * Returns the value of the <code>dzyj</code> property.
    *
    * @hibernate.property
    * length="100"
    * column="dzyj"
    */
   public java.lang.String getDzyj() {
      return dzyj;
   }

   /**
    * Sets the value of the <code>dzyj</code> property.
    *
    * @param dzyj the value for the <code>dzyj</code> property
    */
   public void setDzyj(java.lang.String dzyj) {
      this.dzyj = dzyj;
   }

   /**
    * Returns the value of the <code>zjlx</code> property.
    *
    * @hibernate.property
    * length="20"
    * column="zjlx"
    */
   public java.lang.String getZjlx() {
      return zjlx;
   }

   /**
    * Sets the value of the <code>zjlx</code> property.
    *
    * @param zjlx the value for the <code>zjlx</code> property
    */
   public void setZjlx(java.lang.String zjlx) {
      this.zjlx = zjlx;
   }

   /**
    * Returns the value of the <code>lxdz</code> property.
    *
    * @hibernate.property
    * length="200"
    * column="lxdz"
    */
   public java.lang.String getLxdz() {
      return lxdz;
   }

   /**
    * Sets the value of the <code>lxdz</code> property.
    *
    * @param lxdz the value for the <code>lxdz</code> property
    */
   public void setLxdz(java.lang.String lxdz) {
      this.lxdz = lxdz;
   }

   /**
    * Returns the value of the <code>qtxx</code> property.
    *
    * @hibernate.property
    * length="255"
    * column="qtxx"
    */
   public java.lang.String getQtxx() {
      return qtxx;
   }

   /**
    * Sets the value of the <code>qtxx</code> property.
    *
    * @param qtxx the value for the <code>qtxx</code> property
    */
   public void setQtxx(java.lang.String qtxx) {
      this.qtxx = qtxx;
   }

   /**
    * Returns the value of the <code>hykmmHyklx</code> relation property.
    *
    * @return the value of the <code>hykmmHyklx</code> relation property.
    *
    * @hibernate.many-to-one
    *            column="hykmm"
    *      cascade="none"
    */
   public HyklxBean getRelationHykmmHyklx(){
      return hykmmHyklx;
   }
    
   /**
    * Returns the value of the <code>hykmmHyklx</code> relation property.
    *
    * @return the value of the <code>hykmmHyklx</code> relation property.
    *
    */
   public HyklxIf getHykmmHyklx(){
      return getRelationHykmmHyklx();
   }

   /**
    * Sets the value of the <code>hykmmHyklx</code> relation property.
    *
    * @param hyklx a value for <code>hykmmHyklx</code>.
    */
   public void setRelationHykmmHyklx(HyklxBean hyklx) {
      this.hykmmHyklx = hyklx;
   }
   
   /**
    * Sets the value of the <code>hykmmHyklx</code> relation property.
    *
    * @param hyklx a value for <code>hykmmHyklx</code>.
    */
   public void setHykmmHyklx(HyklxIf hyklx) {
      setRelationHykmmHyklx(new HyklxBean(hyklx));
   }
   



   /**
    * Returns the value of the <code>hykmm</code> property.
    *
    */
   public java.lang.String getHykmm() {
      if (hykmmHyklx != null) {
         return hykmmHyklx.getHykmm();
      } else {
         return null;
      }
   }

   /**
    * Sets the value of the <code>hykmm</code> property.
    *
    * @param hykmm the value for the <code>hykmm</code> property
    */
   public void setHykmm(java.lang.String hykmm) {
      if (hykmmHyklx == null) {
        hykmmHyklx = new HyklxBean();
      }
      hykmmHyklx.setHykmm(hykmm);
   }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -