且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用EclipseLink将行插入到具有唯一标识符列的表中

更新时间:2023-11-30 21:36:46

这是因为您没有字段,并且使用的是生成的ID,因此没有要插入的内容.您要么需要添加另一个字段,要么需要使用TABLE ID生成而不是IDENTITY(我建议不要使用IDENTITY,因为它不支持预分配).

This is because you have no fields, and are using a generated id, so there is nothing to insert. You either need to add another field, or need to use TABLE id generation instead of IDENTITY (I recommend never using IDENTITY as it does not support pre-allocation).