Top Description Inners Methods
org.hibernate.validator.constraints

public @Interface Currency

extends Annotation
Annotations
@Documented
@Constraint
validatedBy:
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Repeatable:List
@ReportAsSingleViolation
Static Imports
java.lang.annotation.ElementType.ANNOTATION_TYPE, .ElementType.CONSTRUCTOR, .ElementType.FIELD, .ElementType.METHOD, .ElementType.PARAMETER, .ElementType.TYPE_USE, .RetentionPolicy.RUNTIME

The MonetaryAmount has to be in the right CurrencyUnit.
Author
Guillaume Smet
Since
5.4

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static @interface
Currency.List

Defines several @Currency annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public Class<?>[]
public String
public Class<? extends Payload>[]
public String[]
value()

The CurrencyUnit codes (e.g. USD, EUR...) being accepted.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

groupsback to summary
public Class<?>[] groups()
messageback to summary
public String message()
payloadback to summary
public Class<? extends Payload>[] payload()
valueback to summary
public String[] value()

The CurrencyUnit codes (e.g. USD, EUR...) being accepted.

org.hibernate.validator.constraints back to summary

public @Interface Currency.List

extends Annotation
Annotations
@Target:METHOD, FIELD, ANNOTATION_TYPE, CONSTRUCTOR, PARAMETER, TYPE_USE
@Retention:RUNTIME
@Documented

Defines several @Currency annotations on the same element.

Method Summary

Modifier and TypeMethod and Description
public Currency[]
Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

valueback to summary
public Currency[] value()