This issue can't be edited

Because it belongs to an archived project. Jira admins can restore projects from the archive.

Work with the JAXB EG to have a nice Bean Validation integration

Description

None

Environment

None

Activity

Show:

Marcel Valovy September 29, 2015 at 12:53 PM

Hi,

I created open-source "Bean Validation in JAXB" specification and reference implementation. It is a part of EclipseLink MOXy solution which provides JAXB 2.0. It uses Hibernate Validator as its default BV provider.
It is a fully-functionable integration of BV with JAXB. All main areas are covered, including marshalling, unmarshalling, XJC (Plugin) and schema generation. User-specific annotations are also supported.

More information at: https://wiki.eclipse.org/EclipseLink/Examples/MOXy/BVinJAXB

Daniel Gredler March 19, 2013 at 2:12 AM

FYI, this JAXB plugin seems to do the trick for now: https://github.com/krasa/krasa-jaxb-tools

Emmanuel Bernard August 23, 2012 at 2:26 PM

It definitely should be pushed to the JAXB side. I did chat with them a long time about correspondences between their XML constraints and Bean Validation's.

I''ll try and revive that.

Gunnar Morling August 22, 2012 at 10:54 PM

Thinking about this a bit more, I'm wondering whether this actually isn't more a topic for the JAXB EG.

The idea behind this is to add BV annotions to generated beans based on XML schema constructs (xs:minInclusive, xsattern etc.) and the other way around, right? The mapping between XSD and Java types is described in the JAXB spec, so is there really very much which could be done on the BV side?

Emmanuel Bernard August 22, 2012 at 6:02 PM

Shoudn't this go to HV instead of BVAL?

Details

Assignee

Reporter

Participants

Daniel Gredler
Diogo Quintela
Emmanuel Bernard
Gunnar Morling
Marcel Valovy

Components

Priority

Created March 8, 2011 at 3:25 PM
Updated September 29, 2015 at 12:53 PM