]
Hardy Ferentschik updated HV-487:
---------------------------------
Fix Version/s: (was: 4.2.0.Final)
4.2.0.CR1
Settle on an approach for instantiating constraint definitions
--------------------------------------------------------------
Key: HV-487
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HV-487
Project: Hibernate Validator
Issue Type: Task
Components: engine
Reporter: Gunnar Morling
Assignee: Hardy Ferentschik
Fix For: 4.2.0.CR1
Due to the addition of method constraints the completely fluent way for instantiating
constraint definitions in the mapping API doesn't work anymore. The alternatives
discussed so far include:
(1):
{code:java}
mapping.type( Marathon.class )
.property( "name", METHOD )
.constraint( new NotNullDef() )
{code}
(2):
{code:java}
mapping.type( Marathon.class )
.property( "name", METHOD )
.constraint( ConstraintDef.create( NotNullDef.class ) )
{code}
(3):
{code:java}
mapping.type( Marathon.class )
.property( "name", METHOD )
.constraint( NotNullDef.create() )
{code}
One approach must be chosen and implemented (as of HV-431 (2) is implemented). Also the
reference guide must be updated.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: