Hibernate映射问题
小弟用Hibernate映射postgresql时出现如下问题
这是hbm文件
<hibernate-mapping>
<class name= "jp.talentDespatch.db.Accessories " table= "accessories " schema= "public ">
<id name= "acIndex " type= "java.lang.Integer ">
<column name= "ac_index " />
<generator class= "assigned " />
</id>
<many-to-one name= "message " class= "jp.talentDespatch.db.Message " fetch= "select ">
<column name= "mes_index " />
</many-to-one>
<property name= "acAccessories " type= "java.lang.String ">
<column name= "ac_accessories " />
</property>
<property name= "acMender " type= "java.lang.String ">
<column name= "ac_mender " length= "50 " />
</property>
<property name= "acReTime " type= "java.util.Date ">
<column name= "ac_re_time " length= "8 " />
</property>
<property name= "acCreator " type= "java.lang.String ">
<column name= "ac_creator " length= "50 " />
</property>
<property name= "acCrTime " type= "java.util.Date ">
<column name= "ac_cr_time " length= "8 " />
</property>
</class>
</hibernate-mapping>
这是java bean
private Integer acIndex;
private Message message;
private String acAccessories;