-->
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.  [ 1 post ] 
Author Message
 Post subject: Custom UserType
PostPosted: Fri Dec 05, 2008 5:45 am 
Newbie

Joined: Wed Feb 20, 2008 2:14 am
Posts: 4
Location: India
Why Custom user type requires a public default constructor ?

org.hibernate.type.CustomType instantiates the Custom User Type which required the default constructor of the custom user type to be public.

It should have been allowed to have private default constructor in the custom user type and that could have still be instantiated by the hibernate using the following code;

Constructor<?> constructor = MaintenanceType.class.getDeclaredConstructor(null);
constructor.setAccessible(true);
constructor.newInstance(null);


Please give your valuable Suggestions....

_________________
Romender


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

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.