-->
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.  [ 3 posts ] 
Author Message
 Post subject: Suppressing full constructor with hbm2java.CodeGenerator
PostPosted: Fri Mar 05, 2004 8:06 pm 
Newbie

Joined: Tue Oct 14, 2003 2:07 pm
Posts: 10
Location: Berkeley, CA
Is it possible to NOT generate the full constructor when using hbm2java.CodeGenerator? We do not use those full constructors internally and the Hibernate documentation mentions only a default constructor is needed for a persistent class.

(BTW CodeGenerator is a fantastic tool.)
Thanking all responders in advance.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Mar 06, 2004 5:21 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
don't think it is possible right now....but add a jira on it and assign me - then it will get there someday.....faster if ya' provide a patch ;)

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Mar 08, 2004 3:03 pm 
Newbie

Joined: Tue Oct 14, 2003 2:07 pm
Posts: 10
Location: Berkeley, CA
Max,

Thanks for the super quick response. We'll be looking into doing the patch sometime this week as we really need it for our subclassing. I.e having generated base object(1) -> hand built base object(2) -> generated subclassed object(3) ->hand built subclass object(4) forces us undesirably to put in the full constructor into the hand built base object class(2) because of the generated full constructor in the generated subclassed object(3) calls super.

Hster


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