接上

常见问题

4.在J2SE项目中调试,能进行insert等操作,但是就是不能自动创建表.

 (1)检查xml文件中的数据库方言是否相吻合(可能用的是 Oracle数据库,写成了Mysql的方言)

 (2)注意hibernate.hbm2ddl.auto属性值

5.错误提示,String类型找不到.

oracle自增长的类型是 Integer.将实体Bean中对应的Id类型由String-->Integer.

相关文章:

  • 2021-05-28
  • 2021-07-21
  • 2022-12-23
  • 2021-07-18
  • 2022-12-23
  • 2021-07-03
  • 2022-12-23
  • 2021-11-06
猜你喜欢
  • 2021-08-27
  • 2021-12-31
  • 2021-09-24
  • 2022-12-23
相关资源
相似解决方案