There are a variety of ways to define an entity mapping that only consists of a single identity-based column, such as: {code} @Entity public class TheEntity { @Id @GeneratedValue(strategy = GenerationType.IDENTITY) private Integer id; } {code} or {code} @Entity public class TheEntity { @id @GeneratedValue(startegy = GenerationType.IDENTITY) private Integer id; @OneToMany (mappedBy = "theEntity") private List<SomeOtherEntity> others; } {code} In either case, the generated insert SQL syntax is incorrect.
For Oracle 12c, the generated SQL is {code} INSERT INTO TheEntity values ( ) {code} This should probably by rendered instead as {code} INSERT INTO TheEntity (id) values (default) {code} I'm unclear on the exact fix (if any) for SAP Hana. |
|