increment « ID « JPA Q&A





1. Increment generated id strategy not using correct table name    forum.hibernate.org

@Entity @Table(name = "myEntity", catalog = "", schema = "MYDB") public class MyEntity implements Serializable { @Id @Basic(optional = false) @GeneratedValue(generator="id_mycolumn") @GenericGenerator(name = "id_mycolumn", strategy = "increment") @Column(name = "mycolumn", nullable = false) //... ...

2. wrong generated id when using "increment"    forum.hibernate.org

Hibernate version:2.1.6 Mapping documents: