@Id @GeneratedValue but set own ID value
Bypass GeneratedValue in Hibernate
Why do we need @GeneratedValue? JPA Entity class giving error with 2 @GeneratedValue fields @GeneratedValue annotation jpa where is generatedvalue persisted / how to increase it Hibernate @GeneratedValue Attempt to modify an identity column Hibernate null constraint violation on @Id with @GeneratedValue @GeneratedValue ID try to duplicate primary key of entry in existing database MySQL Java hibernate @GeneratedValue , how to deal with deleted rows. in mysql cannot accept a NULL value on @ID @generatedvalue JPA entity How set Long id new java.util.Date().getTime() to @GeneratedValue How to use @GeneratedValue in a non pk field Manual inserts while using hibernate @GeneratedValue Hibernate @generatedvalue for HSQLDB JPA @GeneratedValue and @Id Hibernate does not generate tables when @GeneratedValue is set Hibernate @GeneratedValue V.S. custom assignment Unique annotation @GeneratedValue Error in the @GeneratedValue JPA Tag hibernate @GeneratedValue correct? Spring 4.3.0.RELEASE + Hibernate 5.2.0.Final - GeneratedValue on mysql How to obtain Oracle generated value from a sequence in Hibernate + JPA with @ID and @GeneratedValue How to set initial value for @Id @GeneratedValue in Spring JPA for MySQL? @GeneratedValue when create a new instance When does the JPA set a @GeneratedValue @Id Error: The given id must not be null for GeneratedValue in JPA GeneratedValue in Postgres Specify length (size) of @Id @GeneratedValue using Hibernate Annotations Hibernate 3 Composite key one with GeneratedValue @GeneratedValue(strategy="IDENTITY") vs. @GeneratedValue(strategy="SEQUENCE")