Posted By

virgium03hotmailcom on 10/07/10


Tagged

table sequence entity Hibernate


Versions (?)

Use sequences on Hibernate entities


 / Published in: Java
 

  1. @Id
  2. @Column(name = "OFFER_ID")
  3. @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "OFR_OFFERS_SEQ")
  4. @SequenceGenerator(name = "OFR_OFFERS_SEQ", sequenceName = "OFR_OFFERS_SEQ", allocationSize = 1)
  5. private Long offerId;

Report this snippet  

You need to login to post a comment.