-->
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: Annotations Question
PostPosted: Sat Jun 10, 2006 4:45 am 
Newbie

Joined: Sat Jun 10, 2006 4:38 am
Posts: 1
So, I'm fairly new to annotations, and quite frankly fairly new to Hibernate. Anyway, my situation is, I created several classes and successfully annotated them to create the tables that I wanted. Everything worked great. HOWEVER, if I made a change to a class and had to change the annotations in the class, say add a new field, Hibernate dropped my table and then recreated it.

Well, that's not a good thing as my table had data in it... I was just playing around, so I didn't lose any real info, but it was very disconserting that this is the behavior.

So question is, am I doing something wrong? Is there a way to have changes in annotations use table updates rather than dropping the table?? Do I have to make the change to the table FIRST, then run hibernate and it'll find that the field is there and won't drop the table??

Please help! I really like annotations more than XDoclet, but I can't use them unless I can control how it propogates changes.

Thanks for any help you all can provide!


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.