On 08/04/2011 10:59 AM, Hardy Ferentschik wrote: > Hi, > > support for Joda time is new in Validator 4.2. See also > https://hibernate.onjira.com/browse/HV-307 > as you can see in the pom joda time is an optional dependency for HV 4.3 > (https://repository.jboss.org/nexus/service/local/repositories/central/content/org/hibernate/hibernate-validator/4.2.0.Final/hibernate-validator-4.2.0.Final.pom_
Thanks Hardy, I think that Stuart is adding an AS7 module for joda-time soon. We should be able to use that to resolve jira AS7-1465. Stuart, from the above pom definition, it looks like HV needs: <dependency> <groupId>joda-time</groupId><artifactId>joda-time</artifactId><version>1.6</version><scope>compile</scope><optional>true</optional></dependency> Is this the same version that you are adding to AS7? If not, maybe we can put joda-time 1.6 in its own slot. > > As far as I know AS 7 is still shipped w/ Validator 4.1 and its > dependencies. There is an issue for upgrading > to Hv 4.2 in AS 7 - https://issues.jboss.org/browse/AS7-967 > > If the user want to use the Validator version provided w/ AS7, then he > indeed has to update the jars and module definitions. > If he has all jars (HV 4.2 + deps) bundles within the application I am not > quite sure how class loading works in this case. > > I wonder though what he is actually validating (the actual annotated > bean). He is mentioning HV 4.1 and there we did not even have joda time > support > so I don't see how he validated Joda time instances using 4.1 without > providing a custom ConstraintValidator. > > Hope this helps, > --Hardy > > On Thu, 04 Aug 2011 16:38:57 +0200, Scott Marlow<smar...@redhat.com> > wrote: > >> I'm just starting to ask questions about this issue on the jira >> https://issues.jboss.org/browse/AS7-1465 >> >> I asked where the joda-time-1.6.2.jar is in the deployment. >> >> Any other questions we should ask? >> >> Scott >> _______________________________________________ >> hibernate-dev mailing list >> hibernate-dev@lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/hibernate-dev > _______________________________________________ > hibernate-dev mailing list > hibernate-dev@lists.jboss.org > https://lists.jboss.org/mailman/listinfo/hibernate-dev _______________________________________________ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev