MappingException « Component « JPA Q&A





1. MappingException: component class not found    forum.hibernate.org

I used RevEng to generate java and hbm from a sample database. The java class matches one to one to the hbm files except for two id generator classes. My HibernateFactory class has a cfg.addDirectory(modelDirectory) which points to the directory containing both the hbm and .class files. This always worked up to now, but in this case gets a org.hibernate.MappingException: component ...