d_user表中id做了序列,可是在User.hbm.xml中配置<id name="id" type="integer">
<column name="id" not-null="true"/>
<generator class="sequence">
<param name="sequence">user_seq</param>
</generator>
</id>是启动服务器的时候出错了:could not instantiate id generator [entity-name=entity.User]我试着generator class="native"结果报500错误了:HTTP Status 500 - could not insert: [entity.User];
nested exception is org.hibernate.exception.SQLGrammarException: could not insert: [entity.User]
<column name="id" not-null="true"/>
<generator class="sequence">
<param name="sequence">user_seq</param>
</generator>
</id>是启动服务器的时候出错了:could not instantiate id generator [entity-name=entity.User]我试着generator class="native"结果报500错误了:HTTP Status 500 - could not insert: [entity.User];
nested exception is org.hibernate.exception.SQLGrammarException: could not insert: [entity.User]
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货