实现效果如下:
package com.fsti.ssh.entity.hibernate;
// Generated 2013-6-21 18:10:59 by Hibernate Tools 3.4.0.CR1
import java.math.BigDecimal;
import java.util.Date;
import java.util.LinkedHashMap;
import java.util.Map;
/**
* TSsh generated by hbm2java
*/
public class TSsh implements java.io.Serializable {
/**
* 主键-seq_ssh.
*/
private String id;
/**
* 名称.
*/
private String name;
/**
* 创建时间.
*/
private Date createDate;
/**
* 更新时间.
*/
private Date updateDate;
/**
* 类型;1:普通;2:特殊.
*/
private String type;
/**
* 总数.
*/
private BigDecimal count;
public TSsh() {
}
public TSsh(String id) {
this.id = id;
}
public TSsh(String id, String name, Date createDate, Date updateDate,
String type, BigDecimal count) {
this.id = id;
this.name = name;
this.createDate = createDate;
this.updateDate = updateDate;
this.type = type;
this.count = count;
}
public static Map<String, String> relation = new LinkedHashMap<String, String>();
static {
relation.put("id", "主键-seq_ssh");
relation.put("name", "名称");
relation.put("createDate", "创建时间");
relation.put("updateDate", "更新时间");
relation.put("type", "类型;1:普通;2:特殊");
relation.put("count", "总数");
}
public