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