-->
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: about persistent class
PostPosted: Thu Feb 21, 2008 7:54 am 
Newbie

Joined: Thu Feb 21, 2008 6:19 am
Posts: 7
Hi all,
I am having the doubt that what is the necessity of providing default constructor for POJO class.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 21, 2008 9:18 am 
Senior
Senior

Joined: Fri Jun 01, 2007 12:41 pm
Posts: 121
Here is what hibernate doc says:

"All persistent classes must have a default constructor (which may be non-public) so that Hibernate can instantiate them using Constructor.newInstance(). We strongly recommend having a default constructor with at least package visibility for runtime proxy generation in Hibernate."

http://www.hibernate.org/hib_docs/v3/reference/en/html/persistent-classes.html#persistent-classes-pojo-constructor


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.