-->
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-constructor methods which one will be used?
PostPosted: Tue Jul 03, 2007 3:05 pm 
When i use the Hibernate Code generation menu from myeclipse, i get the pojo objects with 3 posssible constructor methods.


1) One with Empty arg
2) One with minimal args
3) One full constructor

Question abt 2&3, How the parameters of the constructor are determined?

When the object is instantiated which constructor will be called?

Whats the need to have 3 different implementations of the constructor methods

Thanks


Top
  
 
 Post subject:
PostPosted: Wed Jul 04, 2007 12:09 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 7:19 pm
Posts: 2364
Location: Brisbane, Australia
The extra constructors are for your convenience.


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.