Good day,
I've been struggling with this problem for 2 days now and I am about to give up. I am getting this "Could not compile the mapping" error for any Hibernate mapping file, when I try to generate the DDL. The second error also shows hibernate.properties not found, however changes in this file affects the build, so it appears to be a false alarm.
Any help, will be great - Urgent.
(cfg.Environment 462 ) Hibernate 2.1.3
(cfg.Environment 491 ) hibernate.properties not found
(cfg.Environment 519 ) using CGLIB reflection optimizer
(cfg.Configuration 166 ) Mapping file: D:\nouveau\vhr\WEB-INF\lib\samples\target\gen-src\vhr\hibernate\Animal.hbm.xml
(cfg.Configuration 252 ) Could not compile the mapping document
net.sf.hibernate.MappingException: persistent class [vhr.hibernate.Animal] not found
at net.sf.hibernate.cfg.Binder.bindClass(Binder.java:84)
at net.sf.hibernate.cfg.Binder.bindRootClass(Binder.java:221)
at net.sf.hibernate.cfg.Binder.bindRoot(Binder.java:1243)
at net.sf.hibernate.cfg.Configuration.add(Configuration.java:249)
at net.sf.hibernate.cfg.Configuration.addFile(Configuration.java:171)
at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.getConfiguration(SchemaExportTask.java:195)
at net.sf.hibernate.tool.hbm2ddl.SchemaExportTask.execute(SchemaExportTask.java:135)
|