hibernate自动创建表报表不存在

在hibernate.cfg.xml配置了<property name="hibernate.hbm2ddl.auto">update</property>自动创建表,但是项目启动会报 table doesn't exists

可能原因是主键策略设置的是native

而类里的id类型是String

这个uid要换成Integer

 

posted @ 2018-04-03 11:38  此地  阅读(521)  评论(0编辑  收藏  举报