Caused by: org.hibernate.DuplicateMappingException: duplicate import: Engin refers to both two.entity.Engin and allview.entity.Engin (try using auto-import="false")
at org.hibernate.cfg.Configuration$MappingsImpl.addImport(Configuration.java:2892)
at org.hibernate.cfg.HbmBinder.bindPersistentClassCommonValues(HbmBinder.java:681)
at org.hibernate.cfg.HbmBinder.bindClass(HbmBinder.java:595)
at org.hibernate.cfg.HbmBinder.bindRootClass(HbmBinder.java:325)
at org.hibernate.cfg.HbmBinder.bindRoot(HbmBi
nder.java:178)
at org.hibernate.cfg.Configuration$MetadataSourceQueue.processHbmXml(Configuration.java:3816)
... 48 more