(Quick Reference)

max

Purpose

Ensures a value does not exceed a maximum value.

Examples

age max: new Date()
price max: 999F

Description

Sets the maximum value of a class that implements java.lang.Comparable. The type of the value must be the same as the property.

This constraint influences schema generation.

Error Code: className.propertyName.max.exceeded