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.
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
This maven plugin ( jaxb2-maven-plugin ) might be useful for you. This post has more information about its usage and the given example uses POJO's to do the transformation
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.