For my project i need to use hibernate to insert some values into a table. To do this, i absolutely need to use two sequences from the oracle database. The first one is used to generate the primary key and it’s working great. But the second is used to increment a field that is not an id.
It seems that i can’t use the @GeneratedValue annotation on a field that is not an id but i wanted to know if it was still possible to use the oracle sequence ?
Thanks in advance.