-->
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: @id names: bug or feature?
PostPosted: Mon Mar 12, 2012 9:26 am 
Newbie

Joined: Mon Mar 12, 2012 7:07 am
Posts: 9
I had four classes each with
Code:
@Id
@GeneratedValue
private long id;

then I decided to change the member name "id" ... did it initially for 2 classes -> ok
started to use the configuration
then realized I should change this name for 2 other classes.
something weird is happening: I have now in the generated tables two columns for the id .. one is named "id" (old name) the other bears the new name (only the old "id" is "generated").
I configured to "create-drop", I stopped the database, stopped the machine ....no way, hibernate keeps generating two columns!
bug or feature ?
thanks


Top
 Profile  
 
 Post subject: Re: @id names: bug or feature?
PostPosted: Mon Mar 12, 2012 10:52 am 
Newbie

Joined: Mon Mar 12, 2012 7:07 am
Posts: 9
after many re-generations (dealing with other data) the bug disappeared (as mysteriously as it had appeared!)


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.