[
http://opensource.atlassian.com/projects/hibernate/browse/HV-471?page=com...
]
Hardy Ferentschik commented on HV-471:
--------------------------------------
To which section of the spec are you referring. I cannot find your statement.
Here is a quote from section _3.4 Group and group sequence_ though:
{quote}
A group defines a subset of constraints. Instead of validating all constraints for a given
object graph, only a subset
is validated. This subset is defined by the the group or groups targeted. Each constraint
declaration defines the list
of groups it belongs to. If no group is explicitly declared, a constraint belongs to the
Default group.
*Groups are represented by interfaces*.
{quote}
Group has to be an interface - Documentation or code bug
--------------------------------------------------------
Key: HV-471
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HV-471
Project: Hibernate Validator
Issue Type: Task
Affects Versions: 4.1.0.Final
Reporter: Vladislav Pernin
The documentation says :
The Bean Validation specification does not enforce that groups have to be interfaces. Non
interface classes could be used as well, but we recommend to stick to interfaces.
But the code says something else :
javax.validation.ValidationException: A group has to be an interface. <class.name>
is not.
at
org.hibernate.validator.engine.groups.GroupChainGenerator.getGroupChainFor(GroupChainGenerator.java:52)
at
org.hibernate.validator.engine.ValidatorImpl.determineGroupExecutionOrder(ValidatorImpl.java:176)
at org.hibernate.validator.engine.ValidatorImpl.validate(ValidatorImpl.java:113)
Could it be related to HV-165 ?
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira