luizloureiro wrote:
Hello all,
I also have the same problem, not using XDoclets, and using Hibernate 2.1.2
If the problem is the version, my lib is updated with the 2.1.2 and still receiving the message:
Caused by: net.sf.hibernate.MappingException: duplicate import: BusinessCustomer
would anyone suggest anything else ??
Thanks in advance
I am having exactly the same error as above, using hibernate.cfg.xml (vs. hibernate.properties). I've noticed that when I don't specifiy the path name to the hbm.xml file, in hibernate.cfg.xml, the mapping file is not found. If I do specify the path name to the hgm.xml file, and it is located in the same directory as the bean being mapped (as it should be), then I get the "duplicate import" error.
The examples I've seen in the docs and articles don't specify a path name in the mapping element of hibernate.cfg.xml, and place the hbm.xml file in the same directory as the bean. Maybe this doesn't have anything to do with the "duplicate import" error. Now for two of us: any help would be greatly appreciated.