hibernate 保存POJO数据到oracle
使用hibernate框架对pojo数据进行save到数据库时(笔者碰到的问题是在操作oracle数据库),由于某些配置不当会引起一些错误,
如:org.hibernate.exception.SQLGrammarException: could not get next sequence value
这是因为数据库表中id作为主键设置自动增长,而pojo模型中的id(如 user...
原创
2013-01-01 17:30:11 ·
203 阅读 ·
0 评论