How is my id being generated with JPA using Hibernate with the Oracle 10g dialect?
Posted
by JavaRocky
on Stack Overflow
See other posts from Stack Overflow
or by JavaRocky
Published on 2010-03-05T03:40:39Z
Indexed on
2010/05/02
17:07 UTC
Read the original article
Hit count: 239
I have some code:
@Id
@SequenceGenerator(name = "SOMETHING_SEQ")
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SOMETHING_SEQ")
@Column(name = "SOMETHING", nullable = false)
private Long id;
How is hibernate providing my id?
I see in my database there a single sequence named 'hibernate_sequence' and no other hibernate 'special tables'.
© Stack Overflow or respective owner