-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Forward and backward data compatability
PostPosted: Tue Jul 11, 2006 11:20 am 
Newbie

Joined: Tue Jun 21, 2005 1:02 pm
Posts: 12
Our product has a requirement that full compatability must be maintained accross code and data versions. What this means is that even when the data schema changes, old code must still be able to startup and use the new database schema (with the same old functionality). This also means that a new version of the code needs to be able to read an older version of the schema (with reduced functionality).

The first problem can be solved by never deleting any data. Adding tables and columns is ok, but no data can ever be removed. This may cause performance problems, but can work. Hibernate has no problems ignoring unused columns or tables in a database.

The second problem is where my question lies. As soon as Hibernate starts up, it validates that the schema matches the descriptions in the .hbm.xml files. When the new schema has new fields or tables, and tha database has not been upgraded to the new version, Hibernate will fail since the schema does not match the mapping.

Is there any support in Hibernate to help with this problem?

Thanx,
Jim


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.