Hi,
is it possible to persist 2 class Cat, from 2 different packages?
( data.Cat & data.inheritance.PerSubclass.Cat )
I have tried to map those classes ( in 2 different tables ), but I have the following error :
Mapping resource: data/Cat.hbm.xml
Mapping class: data.Cat -> CATS
Mapping joined-subclass: data.DomesticCat -> DomesticCat
Mapping resource: data/inheritance/PerSubclass/Cat.hbm.xml
Could not compile the mapping document
[schemaexport] net.sf.hibernate.MappingException: duplicate import: Cat
It's ok when I rename data.inheritance.PerSubclass.Cat to data.inheritance.PerSubclass.Cat2.
Regards,
Fran
|