Expert |
|
Joined: Thu Jan 29, 2004 2:31 am Posts: 362 Location: Switzerland, Bern
|
With hibernate 2 this is not possible.
I know about the following options:
- If you have a DB which supports instead of triggers you could create a view and let the triggers handle the insert and update correctly.
- Do the the mapping as the DB dictates. On top of this two mapped classes create a combining Facade which hides the DB desing.
- Have a look at Hibernate 3.
BTW: Option 1 works for non normalized tables as well. Just create 2 views representing the normalized data.
HTH
Ernst
|
|