-->
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.  [ 6 posts ] 
Author Message
 Post subject: Question about maintaining model vs. database consistence
PostPosted: Wed Jun 23, 2004 2:49 am 
Newbie

Joined: Wed Jun 23, 2004 2:42 am
Posts: 2
Hi all !

I'm in the process of deciding which of the OR mapping tools to use. Currently I'm deciding between Hibernate, TopLink and Apache OJB.

What I need to know is if Hibernate already has functionality/3rd party tools, whatever, to automatically generate DDL files based on the changes in the model, to keep the customers database synchronized with model.

Example:
We release a product using Hibernate. Then after few weeks we add new classes and attributes, remove some classes. When we want to publish these changes, changes in customers database are required and an appropriate DDL must be created. Can Hibernate somehow assist in doing this or must one do it by hand.

Thank you very much !


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 23, 2004 2:53 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
you can use middlegen as explained in the reference doc.
You'll find a description in the reference guide

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 23, 2004 3:03 am 
Hibernate Team
Hibernate Team

Joined: Tue Sep 09, 2003 2:10 pm
Posts: 3246
Location: Passau, Germany
Thats rather a Job for SchemaUpdate, anthony :) Note that this is not always possible and depends heavily on the metadata of your JDBC-Driver.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 23, 2004 3:03 am 
Newbie

Joined: Wed Jun 23, 2004 2:42 am
Posts: 2
Middlegen as I understand it, is used to generate a complete mapping (model) from an existing database. But if we develop a project from scratch, we already have a model. What we need is a generated DDL that will update customers database to the current model, as explained above.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 23, 2004 4:28 am 
Hibernate Team
Hibernate Team

Joined: Thu Dec 18, 2003 9:55 am
Posts: 1977
Location: France
the main info was:" read about tools in the doc" lol

sorry for this error

_________________
Anthony,
Get value thanks to your skills: http://www.redhat.com/certification


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 23, 2004 5:52 am 
Hibernate Team
Hibernate Team

Joined: Mon Aug 25, 2003 9:11 pm
Posts: 4592
Location: Switzerland
http://www.hibernate.org/Documentation/ ... evelopment

_________________
JAVA PERSISTENCE WITH HIBERNATE
http://jpwh.org
Get the book, training, and consulting for your Hibernate team.


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

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.