hi,
i have an entity which will have the PK is configured with has sequence generator
Code:
<generator class="sequence">
<param name="sequence">ACC_SEQ</param>
</generator>
now some times i can define my own value for this PK but the hibernate is overriding my value with sequence value while adding new.
i want to generate the value from sequence when i was not assigned any value to it. If have assigned value then it should not override with the sequence value.
Is this possible..?
please tell me how to configure in hbm file to satisfy my requirement or any other way.
Thanks You.