From: Andreas S. (JIRA) <no...@at...> - 2006-04-19 14:20:38
|
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 |
From: Geoffrey De S. (JIRA) <no...@at...> - 2006-06-02 14:33:20
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-318?page=comments#action_23249 ] Geoffrey De Smet commented on ANN-318: -------------------------------------- Hibernate-annotations should have an optional dependency on the new hibernate-validator.jar indeed, so hibernate-annotations can keep the code for the update and insert listeners (which will rely on hibernate code). > 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 |
From: Emmanuel B. (JIRA) <no...@at...> - 2006-06-02 15:42:23
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-318?page=comments#action_23250 ] Emmanuel Bernard commented on ANN-318: -------------------------------------- Contribution welcome > 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 |
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 |
From: Christian B. (JIRA) <no...@at...> - 2006-06-02 17:55:17
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-318?page=comments#action_23253 ] Christian Bauer commented on ANN-318: ------------------------------------- No Maven. > 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 |
From: Emmanuel B. (JIRA) <no...@at...> - 2006-06-02 18:37:17
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-318?page=comments#action_23256 ] Emmanuel Bernard commented on ANN-318: -------------------------------------- I don't want maven. ant is just working fine and fast. Technically speaking, Validator do not depends on the Hibernate annotations code. It depends on core and the reflection layer used in hibernate annotations. Now the @Entity dependency comes from the reflection layer, but this probably can be easily solved. Whether or not having one or several jars is a deployment issue that can be solved only after the previous ones are. > 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 |
From: Geoffrey De S. (JIRA) <no...@at...> - 2006-06-09 08:58:35
|
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-318?page=comments#action_23305 ] Geoffrey De Smet commented on ANN-318: -------------------------------------- To bad about Maven 2 (!= slow Maven 1), but understandable that's its definitly not a priority. The meta-data of the hibernate jars in the central repo is good, so there is no real need trying to convince you :) But if you're ever interested, read the freely downloadable m2 book - it contains a chapter on migration from ANT. Validator really deserves it own jar (maybe even it's own JSR?), as many application that don't use a database could benefit from it, (including my exceptionhandling example in spring-richclient). But since I want to propose changing one of the spring-richclient sample from JDBC to hibernate, we 'll have to deal with the javax.persistence jar not being in the central repo anyway. Ps: Keep up the good work, hibernate-annotations is wonderful, especially the @MappedSuperclass is a big improvement over classic hibernate. > 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 |