Search code examples
javamavenjpaxsdhyperjaxb

Generate XSD schemas from an existing database or JPA entities


I have been using hyperjaxb tool to generate JPA entities and database scripts from XSD schemas. Now I want basically the inverse operation. How can I generate XSD schemas based on JPA anotated entities or database? I am using Maven, so any maven solution would be preferable.


Solution

  • If you're using IntelliJ IDEA, see the following link:

    https://www.jetbrains.com/idea/help/generate-xml-schema-from-java-using-jaxb-dialog.html