Hibernate metamodel generator does not generate metamodel for classes outside the module
posted 2 years ago
I've got the following configuration:
Project A,B and C which depends on A and B. In module A there are no JPA mappings. In module B and C there are annotation-based JPA mappings. In module C there are also xml-based mappings for classes in project A. The module C contains standard persistence.xml and orm.xml files which list out all xml-based mappings and entity classes from every module.
I use the following maven configuration to generate the metamodel:
What it turns out is that the metamodel is generated but only for the classes mapped by xml mappings or those mapped by annotation-based mapping but only in module C. No metamodel is generated for classes in module B. Except for that everything works fine (tables are generated etc.) for all classes. So there's something wrong only with metamodel generation.