Regular |
|
Joined: Tue Dec 09, 2003 2:39 pm Posts: 106 Location: Toronto, Canada
|
We have a collection mapped as a Map to a table that has a surrogate key. In our mapping we specify a key, index and a composite-element.
Our issue is that the surrogate key in this table never gets updated in the mapped table.
Question:
1. Should we foregoe the surrogate key here?
2. Is there a way for the mapped table, which is not a Hibernate entity to have its synthetic key assigned automatically when doing an insert?
Regards,
Roll
|
|