-->
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.  [ 2 posts ] 
Author Message
 Post subject: Using SchemaUpdate to upgrade my application using hibernate
PostPosted: Wed Feb 23, 2005 4:55 pm 
Beginner
Beginner

Joined: Fri Mar 12, 2004 5:18 pm
Posts: 44
christian wrote:
Do it manually, thats what your DBA would do anyway. You can of course try SchemaUpdate, but I would never trust a DB vendor to get a JDBC driver right. SchemaUpdate depends on the quality of the JDBC driver.

Please continue this discussion on the regular Hibernate Tools forum.


Thanks Christian.

Can you tell me if how does hibernate behave if the actual database contains more columns than the mapping file indicates?

For example, in the mapping file, I map 4 attributes of my class.
First I have 4 columns in my table for that class.

What if I use the "alter" command and add an extra column in my table (or any mis-match between the actual database table and the mapping), will hibernate still work (i.e. able to retrieve the java object correctly)?

Thank you.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 23, 2005 8:20 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
If you don't map a column then Hibernate does not even know it exists. If it not nullable without a default then the database JDBC driver will complain etc. If its nullable plain column then it will not be an issue.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.