From: Geoffrey De S. (JIRA) <no...@at...> - 2006-06-02 17:36:54
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-318?page=comments#action_23252 ] Geoffrey De Smet commented on ANN-318: -------------------------------------- Using the class validator also requires javax.persistence.Entity at runtime, which is a more annoying issue then missing org.hibernate.MappingException if you're building with Maven 2, because ejb3 isn't available on maven central repo (yet?). For spring-richclient I am making an exception handler for hibernate validations, so it doesn't need hibernate/ejb3. (In my company project I am using hibernate to the fullest (and loving it btw) so there the dependencies don't pose a prob.) Do you think it's easy enough to do to seperate the validator from hibernate-annotations? Are you already building with Maven 2? If so, I 'd love to take a look as setting up won't take half a day, but can't promise I 'll succeed. If not, maybe in time I can help you make a maven 2 proof of concept (like I did for spring-richclient)? > consider making validator framework truely independant of hibernate core > ------------------------------------------------------------------------ > > Key: ANN-318 > URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-318 > Project: Hibernate Annotations > Type: Improvement > Components: validator > Versions: 3.1beta9 > Reporter: Andreas Schildbach > > > I'd like to use the validator framework, but without pulling hibernate in as a dependency. > Currently, if I try to instantiate a ClassValidator, a org.hibernate.MappingException cannot be found. > Consequently, the validator framework could also be independent of the rest of the annotations, and be distributed in its own jar. -- 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.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |