org.hibernate.validator.cfg

## Interface ConstraintMapping

- All Known Implementing Classes:
    DefaultConstraintMapping

      public interface ConstraintMapping

  Represents a constraint mapping configured via the programmatic API.
  Author:
    Hardy Ferentschik, Gunnar Morling, Kevin Pollet (C) 2011 SERLI

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `<C> TypeConstraintMappingContext<C>` | `type(Class<C> beanClass)` Starts defining constraints on the specified bean class.

- - ### Method Detail

    - #### type

          <C> TypeConstraintMappingContext<C> type(Class<C> beanClass)

      Starts defining constraints on the specified bean class. Each bean class may only be configured once within all constraint mappings used for configuring one validator factory.
      Type Parameters:
        `C` - The type to be configured.
      Parameters:
        `beanClass` - The bean class on which to define constraints. All constraints defined after calling this method are added to the bean of the type `beanClass` until the next call of `type`.
      Returns:
        Instance allowing for defining constraints on the specified class.

Copyright © 2007-2014 Red Hat, Inc. All Rights Reserved