Lets say I have two clients each accessing the database to retrieve a person from a persons table. One is on version 1 and the other on version 2. In version 2 a property (date of birth) was added and another one was removed (age) to/from the Person class.
Now let's say we can't upgrade the database yet to version 2.
How would I tell Hibernate for client version 2 to try to serialize the date of birth from the database, but ignore it if the column is not there?
Or let's say we upgrade the database to version 1:
How would I tell Hibernate for client version 1 to try to serialize the age from the database, but ignore it if the column is not there?
Cheers,
Jan-Erik
|