I was wondering if there is a way to let Hibernate know that when any of my mapped objects change state, that it should expire the old db row and create a new one rather than updating the current row. In our database model we never use updates on any of the tables, but instead, we create a new row with the new data (even if only one value is changed) and expire the old row by just changing the value of a boolean column.
Is there a way to do this without creating a separate class to work with the Hibernate IDE or creating interceptor classes? Maybe in the mapping files?
Thanks in advance for any help!
|