-->
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.  [ 5 posts ] 
Author Message
 Post subject: HBM2JAVA overwriting existing POJO's
PostPosted: Fri Mar 18, 2005 4:48 pm 
Newbie

Joined: Fri Mar 18, 2005 4:42 pm
Posts: 5
HI
I am able to create a POJO using HBM2JAVA, after it is created I add a custom constructor in the POJO. Some of my database parameters changed so I had to go back and run middlegen again and then created the POJO's again. This in turn overwrote on my existing POJO's. Is there a way that I can append to the existing POJO's without actually deleting the old ones?
Sudarshan.


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 4:50 pm 
Expert
Expert

Joined: Tue Oct 05, 2004 9:45 am
Posts: 263
why not add the required statements to the mapping-files?

gtx
curio


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 18, 2005 5:23 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
or use <meta attribute="generated-class"> to make hbm2java generate a class you can extend instead of creating the concrete class.

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 21, 2005 11:05 am 
Newbie

Joined: Fri Mar 18, 2005 4:42 pm
Posts: 5
when I create a concrete class, this in turn has to have an abstract, I am already half way thru in creating all the domains, Is there any way I can do it to the existing classes?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 21, 2005 2:47 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
what do you mean - do it with existing classes ?

_________________
Max
Don't forget to rate


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