hibernate 自动创建oracle数据库

在前面介绍的方法中,只能在数据库 中手动添加一张表,否则会报如下错误:、

hibernate oracle java.sql.BatchUpdateException: ORA-00942

解决方法:

在oracle数据中创建每个表对应的sequence:

 create sequence seq_id_xxx start with 1 increment by 1 minvalue 1

原文地址:https://www.cnblogs.com/GodFather001/p/2279811.html