hibernate5-ddl-maven-plugin
hibernate5-ddl-maven-plugin copied to clipboard
How can I specify *.hbm.xml mapping files?
I'm working in a project with an (unfortunate) mix of JPA annotations, Hibernate annotations, and hbm.xml mapping files. It's a Spring Boot application and we specify the locations of the mapping files (in directory/src/main/resources/hibernate/
) via the spring.jpa.mapping-resources
config property. Hibernate generates the DB schema for all the annotated entities and mapping files at runtime.
But when I run the hibernate54-ddl:gen-ddl
maven goal, it only includes SQL for the annotated entity classes, ignoring the mapping files. Does the plugin support xml mapping files, and if so, how can I tell it where to find them?
Sorry, XML mapping files are not yet on the roadmap. But I will try to add support for them in one of the next versions.