|
楼主 |
发表于 2013-11-23 17:52:29
|
显示全部楼层
GIN 发表于 2013-11-23 16:59
有关的实体 都贴来看看
//VoteEntity.java
package com.lingdong.entity.xml;
import java.math.BigDecimal;
import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.PrimaryKeyJoinColumn;
import javax.persistence.Table;
import org.hibernate.annotations.GenericGenerator;
import javax.persistence.SequenceGenerator;
/**
* @Title: Entity
* @Description: 投票功能
* @author zhangdaihao
* @date 2013-11-21 18:19:32
* @version V1.0
*
*/
@Entity
@Table(name = "tabvote", schema = "")
@SuppressWarnings("serial")
public class VoteEntity implements java.io.Serializable {
/**id*/
private java.lang.String id;
/**varvotename*/
private java.lang.String varvotename;
/**datecreatedate*/
private java.util.Date datecreatedate;
/**datedeadline*/
private java.util.Date datedeadline;
/**varvotedesc*/
private java.lang.String varvotedesc;
/**varisopen*/
private java.lang.String varisopen;
/**varpublisher*/
private java.lang.String varpublisher;
/**varissingle*/
private java.lang.String varissingle;
/**varattachment*/
private java.lang.String varattachment;
/**
*方法: 取得java.lang.String
*@return: java.lang.String id
*/
@Id
@GeneratedValue(generator = "paymentableGenerator")
@GenericGenerator(name = "paymentableGenerator", strategy = "uuid")
@Column(name ="ID",nullable=false,length=32)
public java.lang.String getId(){
return this.id;
}
/**
*方法: 设置java.lang.String
*@param: java.lang.String id
*/
public void setId(java.lang.String id){
this.id = id;
}
/**
*方法: 取得java.lang.String
*@return: java.lang.String varvotename
*/
@Column(name ="VARVOTENAME",nullable=false,length=50)
public java.lang.String getVarvotename(){
return this.varvotename;
}
/**
*方法: 设置java.lang.String
*@param: java.lang.String varvotename
*/
public void setVarvotename(java.lang.String varvotename){
this.varvotename = varvotename;
}
/**
*方法: 取得java.util.Date
*@return: java.util.Date datecreatedate
*/
@Column(name ="DATECREATEDATE",nullable=false)
public java.util.Date getDatecreatedate(){
return this.datecreatedate;
}
/**
*方法: 设置java.util.Date
*@param: java.util.Date datecreatedate
*/
public void setDatecreatedate(java.util.Date datecreatedate){
this.datecreatedate = datecreatedate;
}
/**
*方法: 取得java.util.Date
*@return: java.util.Date datedeadline
*/
@Column(name ="DATEDEADLINE",nullable=true)
public java.util.Date getDatedeadline(){
return this.datedeadline;
}
/**
*方法: 设置java.util.Date
*@param: java.util.Date datedeadline
*/
public void setDatedeadline(java.util.Date datedeadline){
this.datedeadline = datedeadline;
}
/**
*方法: 取得java.lang.String
*@return: java.lang.String varvotedesc
*/
@Column(name ="VARVOTEDESC",nullable=true,length=500)
public java.lang.String getVarvotedesc(){
return this.varvotedesc;
}
/**
*方法: 设置java.lang.String
*@param: java.lang.String varvotedesc
*/
public void setVarvotedesc(java.lang.String varvotedesc){
this.varvotedesc = varvotedesc;
}
/**
*方法: 取得java.lang.String
*@return: java.lang.String varisopen
*/
@Column(name ="VARISOPEN",nullable=true,length=1)
public java.lang.String getVarisopen(){
return this.varisopen;
}
/**
*方法: 设置java.lang.String
*@param: java.lang.String varisopen
*/
public void setVarisopen(java.lang.String varisopen){
this.varisopen = varisopen;
}
/**
*方法: 取得java.lang.String
*@return: java.lang.String varpublisher
*/
@Column(name ="VARPUBLISHER",nullable=false,length=32)
public java.lang.String getVarpublisher(){
return this.varpublisher;
}
/**
*方法: 设置java.lang.String
*@param: java.lang.String varpublisher
*/
public void setVarpublisher(java.lang.String varpublisher){
this.varpublisher = varpublisher;
}
/**
*方法: 取得java.lang.String
*@return: java.lang.String varissingle
*/
@Column(name ="VARISSINGLE",nullable=true,length=1)
public java.lang.String getVarissingle(){
return this.varissingle;
}
/**
*方法: 设置java.lang.String
*@param: java.lang.String varissingle
*/
public void setVarissingle(java.lang.String varissingle){
this.varissingle = varissingle;
}
/**
*方法: 取得java.lang.String
*@return: java.lang.String varattachment
*/
@Column(name ="VARATTACHMENT",nullable=true,length=200)
public java.lang.String getVarattachment(){
return this.varattachment;
}
/**
*方法: 设置java.lang.String
*@param: java.lang.String varattachment
*/
public void setVarattachment(java.lang.String varattachment){
this.varattachment = varattachment;
}
} |
|