Home strategy = GenerationType.SEQUENCE depends on sequence in Oracle?
Reply: 0

strategy = GenerationType.SEQUENCE depends on sequence in Oracle?

user384
1#
user384 Published in April 25, 2018, 6:16 pm

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?

@Id
 @SequenceGenerator(name = "SAMPLE", sequenceName = "SAMPLE_ID_SEQ", allocationSize = 1)
 @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SAMPLE")
 @Column(name = "ID")
You need to login account before you can post.

About| Privacy statement| Terms of Service| Advertising| Contact us| Help| Sitemap|
Processed in 0.327054 second(s) , Gzip On .

© 2016 Powered by mzan.com design MATCHINFO