splbbean.java

来自「struts+hibernate3的源程序」· Java 代码 · 共 118 行

JAVA
118
字号
package org.helpsoft.entity.splb;

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

import org.helpsoft.entity.sp.*;

/**
 * The Splb entity bean.
 *
 * @author cao guangxin - www.relationinfo.com
 *
 * @hibernate.class
 *         table="splb"
 */
public class SplbBean implements Serializable, SplbIf {

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



   private java.lang.String splbbm;
   private java.lang.String splbmc;

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

   /**
    * Value object constructor.
    */
   public SplbBean(org.helpsoft.entity.splb.SplbIf value) {
      setSplbbm(value.getSplbbm());
      setSplbmc(value.getSplbmc());
   }

   /**
    * 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>SplbIf</code>
    * @return the primary key for this Splb
    */
   public java.lang.String create(org.helpsoft.entity.splb.SplbIf value) {
      setSplbbm(value.getSplbbm());
      setSplbmc(value.getSplbmc());
      return value.getPrimaryKey();
   }

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

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

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

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

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

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


}

⌨️ 快捷键说明

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