sy_cheung2 wrote:
Can you please tell me if/how hibernate supports back compatiblity?
For example, if I have new release of my application uses hibernate and that add/delete an attribute in my persistent object.
SchemaUpgrade does not support dropping of columns :-( Its only an incremental add.
Quote:
If I use Hibernate's tool to update my database scheme to add/remove an extra column in my table, will an older version of my application still works with this new table in my database?
And what will happen if I use my new application to read data from an un-updated database (missing column)?
Umm sorry but how would a application against a un-matching schema work? What you would probably need to do before your application runs is to begin with an incremental update of your DB with hibernate. This will ensure missing columns your application accesses, are added.
Regarding the dropped columns, if my bean is matched with the hbm, and does not contain the column, my application does not care about it anymore. I am fine with this behaviour. But the DB fields will keep hanging around.. its your decision to make then.
--
Meg