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.
|