[
http://opensource.atlassian.com/projects/hibernate/browse/BVAL-232?page=c...
]
Gunnar Morling edited comment on BVAL-232 at 7/8/11 3:31 PM:
-------------------------------------------------------------
Adding some possible approaches as discussed on hibernate-dev:
Approach #1a:
A generic constraint similar to HV's @ScriptAssert which would allow
to use script expressions in place like this:
{code:java}
@ParameterAssert(script="args[1].before(args[2])", lang="javascript")
void bookHotel(@NotNull @Valid Customer customer, Date from, Date to);
{code}
was (Author: gunnar.morling):
Adding some possible approaches as discussed on hibernate-dev:
Approach #1a:
A generic constraint similar to HV's @ScriptAssert which would allow
to use script expressions in place like this:
@ParameterAssert(script="args[1].before(args[2])", lang="javascript")
void bookHotel(@NotNull @Valid Customer customer, Date from, Date to);
Support Method-Level constraint declaration
-------------------------------------------
Key: BVAL-232
URL:
http://opensource.atlassian.com/projects/hibernate/browse/BVAL-232
Project: Bean Validation
Issue Type: New Feature
Components: spec-general
Reporter: Emmanuel Bernard
Fix For: 1.1
Do you think we should support the following?
{code}@DateInOrder
void bookHotel(@NotNull @Valid Customer customer, Date from, Date to);{code}
ie like we have properly level and class level constraints, we could get method level
constraints receiving all the parameters and raising constraints violations if necessary.
--
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