org.glassfish.jersey.examples.beanvalidation.webapp.constraint
Annotation Type HasId


@Retention(value=RUNTIME)
@Constraint(validatedBy={HasId.Validator.class,HasId.ListValidator.class})
public @interface HasId

Checks whether a given ContactCard entity has ID. Only return values are supposed to be annotated with this annotation.

Author:
Michal Gajdos (michal.gajdos at oracle.com)

Optional Element Summary
 Class<?>[] groups
           
 String message
           
 Class<? extends javax.validation.Payload>[] payload
           
 

message

public abstract String message
Default:
"{org.glassfish.jersey.examples.beanvalidation.webapp.constraint.HasId.message}"

groups

public abstract Class<?>[] groups
Default:
{}

payload

public abstract Class<? extends javax.validation.Payload>[] payload
Default:
{}


Copyright © 2007-2014, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.