我们在 Hibernate 3.3.x 中使用 Apache Derby 10.5.3.0_1 和 hbm2ddl
在嵌入式 derby 数据库上预加载 SQL 时出现以下约束错误。如果我从创建表 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.