Hi Ranchers, I'm facing difficulty in mapping a composite key to my domain model, where one key is "assigned" (i-e assigned from the application code) and the other I want to designate as "increment" (the DB should auto assign).
For example, Pls. consider the following code snippet:
I've tried embedding the <generator class="increment"> tag inside the <key-property> tag, but, unfortunately it's not supported by Hibernate.
Thanks Christine for your reply So from the link you provide what i undersatnd we can not use <generator class="increment" /> in the composite key .Is am i right? If yes do you know how can i overcome this issue.
Thanks in advance