Search This Blog

Thursday, November 15, 2018

Type-level constraint and Attribute-level constraint in JPA bean validation

Type-level constraints are a consideration when you need to validate combinations of attributes on an entity. For Attribute-level constraint validation constraints are used on individual attributes. Type-level constraints make it possible to provide collective validation. For more information about type-level constraints, see the white paper, OpenJPA Bean Validation Primer, and the section "Type-level constraints."