Hi,
I'm currently using generator class as Sequence for my hbm files.
Code:
<generator class="sequence">
<param name="sequence">EMP_HIBERNATE_SEQ</param>
</generator>
Now, the project db team has decided to come up with a generic stored proc which wud return an unique index. In a nutshell, everytime I need an insert, I've to call this proc, get the sequence value and use it as a primary key.
Just wondering if there's any way to fit in this requirement in my current scenario. Any pointers will be highly appreciated.
Regards