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: Create or Update Schema???
PostPosted: Mon Aug 31, 2009 7:15 am 
Beginner
Beginner

Joined: Sat Dec 09, 2006 12:02 pm
Posts: 26
Well, i want that my database is created, when its not existing. And when its existing, and i have made changes, i want that it is updated. But i want to keep my data in the database, when i update it. Can anybody help me how to do this? I found the following methods:

SchemaExport(config).Create
SchemaExport(config).Execute
SchemaUpdate(config).Execute

Which one do i have to use??

Additional info: I use Fluent NHibernate. Means i dont have hbm-files... (don't know whether thats important)


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.