为什么两台电脑上HibernateTools生成的实体类不一样?
环境:两台电脑都是采用的如下
Eclipse3.5(Galileo)
HibernateTools-3.1.0.beta5
使用的是Spring3+Hibernate3的框架,放在服务器上,用的SVN
问题就是,
在使用HibernateTools反向工程的时候,两台电脑生成的实体类不一样
在我的机器上会生成带有如下JPA注释的实体类
import javax.persistence.Column;import javax.persistence.Entity;import javax.persistence.GeneratedValue;import static javax.persistence.GenerationType.IDENTITY;import javax.persistence.Id;import javax.persistence.Table;/** * TblDepartmant generated by hbm2java */@Entity@Table(name = "tbl_departmant", catalog = "demo01")public class TblDepartmant implements java.io.Serializable { private Integer DDid; private String DDname; private String DDetail;
import java.math.BigDecimal;import java.util.Date;/** * AsAssets generated by hbm2java */public class AsAssets implements java.io.Serializable { // Fields private int assetsId; private String assetsSn; private String assetsCode; private String assetsName; private int assetsType; ......