JSF and JPA are using Java Bean validation with annotations. This is really cool functionality if you have EJB/JPA -> JSF based interface - there is no need to duplicate constrains in presentation and business logic.
My application will follow SOA model - it will provide set of JAX-WS services. I would like to have similar possibility there: define constrains on one place (could be WSDL) and use them to generate JPA db tables and also constrains for GUI.
Does someone know technology that allows that?
I could imagine that JAXB generates additional annotations with constrains out of schema in WSDL....
subject: JAX-WS and Java Bean Validation from EE 6