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

📄 busipriceentity.java

📁 国内很牛的软件公司花费两年半开发的用EJB3开发的代码,采用STRUTS和EJB3,目前系统进行第二版.所以拿出来共享
💻 JAVA
字号:
package com.ufmobile.business.account.entity;

import java.io.Serializable;

/**
 * CMP 3.0 class for TB_BUSINESS_PRICE.
 *
 * Modified by Helloween. 
 * 
 * Notice: In this modified middlegen ejb3 plugin program, 
 *         the primary key type is always Long, 
 *         and the generation stratage from database is always oracle sequence.
 *         if the table name is TABLE, the sequence TABLE_SEQ by default.
 *
 * @author <a href="http://boss.bekk.no/boss/middlegen/">Middlegen</a>.
 
 */

@SuppressWarnings("serial") 

@javax.persistence.Entity
@javax.persistence.Table(name = "TB_BUSINESS_PRICE")
//@javax.persistence.SequenceGenerator(name="TB_BUSINESS_PRICE_SEQ", sequenceName="TB_BUSINESS_PRICE_SEQ", allocationSize=25) 
    
public class BusiPriceEntity implements Serializable {

   
   private Long id;

   /**
    * Get the primary key.
    *
    * @return The primary key.
   	* @javax.persistence.Id(generate = javax.persistence.GeneratorType.AUTO)
    */
   @javax.persistence.Id
  // @javax.persistence.GeneratedValue(strategy=javax.persistence.GenerationType.SEQUENCE, generator="TB_BUSINESS_PRICE_SEQ")
   @javax.persistence.Column(name = "ID")
   public Long getId() {
      return id;
   }

   /**
    * Set the primary key.
    *
    * @param id The primary key.
    */
   public void setId(Long id) {
      this.id = id;
   }

   /** Regular field. */
   private Integer subtype;

   /**
    * Get the pricetype.
    *
    * @return The pricetype.
    */
   @javax.persistence.Column(name = "subtype")
   public java.lang.Integer getSubtype() {
      return subtype;
   }

   /**
    * Set the pricetype.
    *
    * @param pricetype The pricetype.
    */
   public void setSubtype(java.lang.Integer subtype) {
      this.subtype = subtype;
   }

   /** Regular field. */
   private java.lang.String pricetype;

   /**
    * Get the pricetype.
    *
    * @return The pricetype.
    */
   @javax.persistence.Column(name = "PRICETYPE")
   public java.lang.String getPricetype() {
      return pricetype;
   }

   /**
    * Set the pricetype.
    *
    * @param pricetype The pricetype.
    */
   public void setPricetype(java.lang.String pricetype) {
      this.pricetype = pricetype;
   }
   /** Regular field. */
   private java.math.BigDecimal price;

   /**
    * Get the price.
    *
    * @return The price.
    */
   @javax.persistence.Column(name = "PRICE")
   public java.math.BigDecimal getPrice() {
      return price;
   }

   /**
    * Set the price.
    *
    * @param price The price.
    */
   public void setPrice(java.math.BigDecimal price) {
      this.price = price;
   }

   /** Regular field. */
   private java.util.Date startdate;

   /**
    * Get the startdate.
    *
    * @return The startdate.
    */
   @javax.persistence.Column(name = "STARTDATE")
   public java.util.Date getStartdate() {
      return startdate;
   }

   /**
    * Set the startdate.
    *
    * @param startdate The startdate.
    */
   public void setStartdate(java.util.Date startdate) {
      this.startdate = startdate;
   }

   /** Regular field. */
   private java.util.Date enddate;

   /**
    * Get the enddate.
    *
    * @return The enddate.
    */
   @javax.persistence.Column(name = "ENDDATE")
   public java.util.Date getEnddate() {
      return enddate;
   }

   /**
    * Set the enddate.
    *
    * @param enddate The enddate.
    */
   public void setEnddate(java.util.Date enddate) {
      this.enddate = enddate;
   }

   /** Regular field. */
   private java.lang.String recorder;

   /**
    * Get the recorder.
    *
    * @return The recorder.
    */
   @javax.persistence.Column(name = "RECORDER")
   public java.lang.String getRecorder() {
      return recorder;
   }

   /**
    * Set the recorder.
    *
    * @param recorder The recorder.
    */
   public void setRecorder(java.lang.String recorder) {
      this.recorder = recorder;
   }

   /** Regular field. */
   private java.util.Date recorderdate;

   /**
    * Get the recorderdate.
    *
    * @return The recorderdate.
    */
   @javax.persistence.Column(name = "RECORDERDATE")
   public java.util.Date getRecorderdate() {
      return recorderdate;
   }

   /**
    * Set the recorderdate.
    *
    * @param recorderdate The recorderdate.
    */
   public void setRecorderdate(java.util.Date recorderdate) {
      this.recorderdate = recorderdate;
   }
}

⌨️ 快捷键说明

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