PO中定义了下面一个字段:
private int sex;hbm.xml中如下配置
<property name="sex" type="java.lang.String"/>hibernate.properties
hbm2ddl.auto = create很奇怪为什么没有报错啊???难道int --> String可以?
private int sex;hbm.xml中如下配置
<property name="sex" type="java.lang.String"/>hibernate.properties
hbm2ddl.auto = create很奇怪为什么没有报错啊???难道int --> String可以?
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货