I am new in SequenceGenerator. I just wanted to know,if i am using GenerationType.SEQUENCE then we have to create sequence with name as SAMPLE_ID_SEQ?
@SequenceGenerator(name = "SAMPLE", sequenceName = "SAMPLE_ID_SEQ", allocationSize = 1)
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SAMPLE")
@Column(name = "ID")
© 2016 Powered by mzan.com design MATCHINFO