hibernate反向生成数据库表
8页1、hibernate反向生成数据库表第一步:添加Hibernate jar包,hibernate.cfg.xml写好数据源.hibernate.cfg.xml:jdbc:mysql:/localhost/testcom.mysql.jdbc.Driverrootrootorg.hibernate.dialect.MySQLDialecttrue第二步:编写实体类;package com.bc.bean;import java.util.Date;public class Business private Integer uId;private String uName;private Date hirDate;private int zStoreNum;private int zBranchNum;private int zTradNum;private int sStoreNum;private int sBranchNum;private int sTradNum;private int bStoreNum;private int bBranchNum;private int bTr
2、adNum;private int totalNum;private String home;public Business() super();public Integer getuId() return uId;public void setuId(Integer uId) this.uId = uId;public String getuName() return uName;public void setuName(String uName) this.uName = uName;public Date getHirDate() return hirDate;public void setHirDate(Date hirDate) this.hirDate = hirDate;public int getzStoreNum() return zStoreNum;public void setzStoreNum(int zStoreNum) this.zStoreNum = zStoreNum;public int getzBranchNum() return zBranchNu
3、m;public void setzBranchNum(int zBranchNum) this.zBranchNum = zBranchNum;public int getzTradNum() return zTradNum;public void setzTradNum(int zTradNum) this.zTradNum = zTradNum;public int getsStoreNum() return sStoreNum;public void setsStoreNum(int sStoreNum) this.sStoreNum = sStoreNum;public int getsBranchNum() return sBranchNum;public void setsBranchNum(int sBranchNum) this.sBranchNum = sBranchNum;public int getsTradNum() return sTradNum;public void setsTradNum(int sTradNum) this.sTradNum = sT
《hibernate反向生成数据库表》由会员pu****.1分享,可在线阅读,更多相关《hibernate反向生成数据库表》请在金锄头文库上搜索。