Hi there,
I'm facing a problem with hibernate during the sql schema generation.
I've got hbm.xml files which have references to several classes that are located in an external .jar (available in the classpath).
When I launch the schema generation, I get :
Code:
ERROR [SchemaExport] Error creating schema
org.hibernate.MappingException: An association from the table MY_TABLE refers to an unmapped class: org.myProject.myPackage.MyClass
at org.hibernate.cfg.Configuration.secondPassCompileForeignKeys(Configuration.java:1258)
at org.hibernate.cfg.Configuration.secondPassCompile(Configuration.java:1176)
...
note : org.myProject.myPackage.MyClass is located in the external .jar.
Do you think it is possible to do this kind of references with Hibernate? How?
Thanks for your help.