-->
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: non-pojo entity model
PostPosted: Thu Oct 13, 2005 6:02 am 
Newbie

Joined: Wed Apr 27, 2005 3:09 pm
Posts: 5
Is it possible to use classes which do not have default constructor as hibernate beans?

I use custom interceptor which reimplements org.hibernate.EmptyInterceptor.instantiate(..) method. It solves few problems, but when deepCopy is called from ComponentType, which calls instantiate method on PojoInstantiator it does not uses interceptor.

PojoInstantiator simply calls newInstance() on bean class. Shouldn't it use interceptor instantiate method?

Is it possible to create own entity model? In source code it looks like it is all hardcoded and only three models are allowed: dom4j, pojo and dynamic map.

This problem could be easily solved if beans could be created from factory but this solution is equal to possibility of adding new custom entity models, it would also allow to work only on interfaces not concrete implementations.


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.