Hibernate version: 2.1.8
Hi, I got a quick question: Isn't it possible to add 2 classes named the same but from different packages to a SessionFactory?
When I try to add 2 classes named the same (and mapped to the same table) but in different packages to the SessionFactory I get:
Code:
"net.sf.hibernate.MappingException: duplicate Import: ClassA".
Some background: The project I'm working on is in a very advanced stage and there are some processes which are eating up the system resources so, in order to improve things, I'm trying to create a lazy copy of all persistent classes in the project to be used in said processes.
I have implemented in recent projects the patterns "Open Session in View", "Thread Local Session", I made some aspects for TX handling, but in this stage of the project is not an option to change that part of the core. I appreciate any suggestions!
Thanks for your time.