cancel
Showing results for 
Search instead for 
Did you mean: 

GeneratedValue and composite primary keys?

Former Member
0 Kudos

Hi all,

just a short question: Can the sequence generators be used for any column, or just for surrogate primary keys?

Imho, the JPA specification a little bit unclear on this point, and I'm not sure how SAP implemented this.

regards,

Christian

Accepted Solutions (1)

Accepted Solutions (1)

adrian_goerler
Active Participant
0 Kudos

Hi Christian,

yes, the JPA spec is unclear in this respect. In SAP JPA, you can use the @GeneratedValues annotation to generated id values only.

Best regards,

Adrian

Answers (0)