-->
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: Hibernate mapping file and code generator
PostPosted: Wed Jul 27, 2005 4:56 am 
Newbie

Joined: Wed Jul 27, 2005 4:51 am
Posts: 1
Dear all,

I am a beginner to hibernate. I wanted the attributes of a table to be changed (table-name, column name). But when I run the application, hibernate still tries to use the old values (table name and column name) for any sql statements generated like (insert etc.). What should I do, so that hibernate generates the sql statements with new changed attributes (new table name and colum name). Should I do something with the code generator. Please give me your suggestions

Kindly reply and my apologies if this is a cliche question.

Thank you very much in advance.

Regards,
Praveen


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 27, 2005 2:55 pm 
Regular
Regular

Joined: Tue Nov 09, 2004 5:15 pm
Posts: 100
Are you using xdoclet for hibernate mapping? If yes, everytime you make changes to the hibernate mapping files, you need to run the xdoclet to regenerate the .hbm.xml files.

Otherwise, your SchemaExport (aka hbm2ddl) will use the old .hbm.xml files.


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.