简体   繁体   中英

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.

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

Generate XSD from Java class

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM