I like the idea.
Initially we've decided to not add them and were waiting for the JSR-310. do you know
the status and expected release?
The main problem I see is that we would likely use the same annotations for both joda and
the jsr-310.
We could think of using @Constraint and use two validator implementations but
unfortunately that would fail at runtime if we don't have Joda Time in the classpath.
Anyone has an idea to work around that?
On 24 mars 2010, at 22:40, Gunnar Morling wrote:
Hi,
for Hibernate Validator 4.1 we are planning to add some new constraints. In
this context Hardy and I discussed whether it might be worth to add support
for the date/time types from the Joda Time API (
http://joda-time.sourceforge.net/) for the @Past/@Future standard
constraints.
I think Joda is quite popular these days, and the upcoming JSR 310 is
heavily influenced by Joda, too (the spec lead is also the lead of Joda). So
this might add value for users, OTOH such support might be too specific. Are
there any opinions on this?
Thanks, Gunnar
_______________________________________________
hibernate-dev mailing list
hibernate-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev