我想在独立的应用程序中使用嵌入式德比的hibernate,我有一些问题:
如果你也可以建议我这个方法的一些好的教程,这将是更好的,提前谢谢.
我们在Hibernate 3.3.x中使用Apache Derby 10.5.3.0_1和hbm2ddl
在嵌入式derby数据库上预加载SQL时出现以下约束错误.如果我从create table sql中删除主键(id),它就能够创建表.不知道这里有什么问题.
create table user_flow (id integer not null generated always as identity unique, creation_date timestamp not null, name varchar(255), primary key (id));
[INFO] Constraints 'SQL100219175052781' and 'SQL100219175052780' have the same set of columns, which is not allowed.
Run Code Online (Sandbox Code Playgroud)