Hibernate version: 2
I got a problem with mapping two classes with the same name from two different libraries in Hibernate.
com.inceptor.somelib.Account
com.inceptor.someotherlib.Account
I get "duplicate import: Account"
These are mapped in hibernate.cfg.xml
<mapping resource="com/inceptor/somelib/Account.hbm.xml"/>
<mapping resource="com/inceptor/someotherlib/Account.hbm.xml"/>
However, it works fine if, I rename my com.inceptor.somelib.Account class to com.inceptor.somelib.SomeLibAccount.
Could it be the below change, has been made too restrictive?
Changes in version 2.1 final (12.12.2003)
-----------------------------------------
* detect and throw exception in the case of a duplicate property mapping
|