From kabooom at op.pl Sun Jan 25 16:08:21 2015 From: kabooom at op.pl (kabooom) Date: Sun, 25 Jan 2015 22:08:21 +0100 Subject: [bv-dev] Feature Suggestion :: GroupSequenceProvider Message-ID: <42597309-5cae4d21abc03e37d4f579bc3bc740c7@pmq4v.m5r2.onet> Hi, It would be great to have GroupSequenceProvider - which is already implemented in Hibernate Validator- also in Bean Validation specification. Thank you. Peter -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.jboss.org/pipermail/beanvalidation-dev/attachments/20150125/5e5a6786/attachment.html From emmanuel at hibernate.org Tue Jan 27 02:17:02 2015 From: emmanuel at hibernate.org (Emmanuel Bernard) Date: Tue, 27 Jan 2015 08:17:02 +0100 Subject: [bv-dev] Feature Suggestion :: GroupSequenceProvider In-Reply-To: <42597309-5cae4d21abc03e37d4f579bc3bc740c7@pmq4v.m5r2.onet> References: <42597309-5cae4d21abc03e37d4f579bc3bc740c7@pmq4v.m5r2.onet> Message-ID: <2794EAE1-812C-4363-B148-E3EB13306C8A@hibernate.org> Hi Peter, Could you give us the use cases in which you would make use of this feature? It helps to make choices and improve the feature further when possible. Emmanuel > On 25 Jan 2015, at 22:08, kabooom wrote: > > Hi, > It would be great to have GroupSequenceProvider - which is already implemented in Hibernate Validator- also in Bean Validation specification. > Thank you. > Peter > _______________________________________________ > beanvalidation-dev mailing list > beanvalidation-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/beanvalidation-dev From kabooom at op.pl Tue Jan 27 23:06:17 2015 From: kabooom at op.pl (kabooom) Date: Wed, 28 Jan 2015 05:06:17 +0100 Subject: [bv-dev] Feature Suggestion :: GroupSequenceProvider Message-ID: <85092027-d4f050661476751eeed09c8cb1ebec40@pmq2v.m5r2.onet> Use cases are the same as described in Hibernate Validator documentation: http://docs.jboss.org/hibernate/validator/5.1/reference/en-US/html_single/#d0e3062 "(...) dynamic redefinition of default group sequences depending on the object state". It would allow to validate appriopriate (dependent on bean's state) Groups on automatically trigerred validation, however I just realized that I could probably workaround this performing validation in class specified in @EntityListeners list, so now I am not sure is GroupSequenceProvider necessary. Peter W dniu 2015-01-27 08:17:02 u?ytkownik Emmanuel Bernard napisa?: > Hi Peter, > > Could you give us the use cases in which you would make use of this feature? It helps to make choices and improve the feature further when possible. > > Emmanuel > > > On 25 Jan 2015, at 22:08, kabooom wrote: > > > > Hi, > > It would be great to have GroupSequenceProvider - which is already implemented in Hibernate Validator- also in Bean Validation specification. > > Thank you. > > Peter > > _______________________________________________ > > beanvalidation-dev mailing list > > beanvalidation-dev at lists.jboss.org > > https://lists.jboss.org/mailman/listinfo/beanvalidation-dev > > > _______________________________________________ > beanvalidation-dev mailing list > beanvalidation-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/beanvalidation-dev > From emmanuel at hibernate.org Wed Jan 28 04:07:16 2015 From: emmanuel at hibernate.org (Emmanuel Bernard) Date: Wed, 28 Jan 2015 10:07:16 +0100 Subject: [bv-dev] Feature Suggestion :: GroupSequenceProvider In-Reply-To: <85092027-d4f050661476751eeed09c8cb1ebec40@pmq2v.m5r2.onet> References: <85092027-d4f050661476751eeed09c8cb1ebec40@pmq2v.m5r2.onet> Message-ID: <422CE01F-648A-4905-B740-EC1B51D5F0D0@hibernate.org> If you can, can you dive a bit into the specific example you are facing? Which state business wise would be useful to decide of the group? The Hibernate Validator mentions security levels. I wanted to see more use cases to get a better feeling before committing to a feature. Emmanuel > On 28 Jan 2015, at 05:06, kabooom wrote: > > Use cases are the same as described in Hibernate Validator documentation: > http://docs.jboss.org/hibernate/validator/5.1/reference/en-US/html_single/#d0e3062 > "(...) dynamic redefinition of default group sequences depending on the object state". > > It would allow to validate appriopriate (dependent on bean's state) Groups on automatically trigerred validation, however I just realized that I could probably workaround this performing validation in class specified in @EntityListeners list, so now I am not sure is GroupSequenceProvider necessary. > > Peter > > W dniu 2015-01-27 08:17:02 u?ytkownik Emmanuel Bernard napisa?: >> Hi Peter, >> >> Could you give us the use cases in which you would make use of this feature? It helps to make choices and improve the feature further when possible. >> >> Emmanuel >> >>> On 25 Jan 2015, at 22:08, kabooom wrote: >>> >>> Hi, >>> It would be great to have GroupSequenceProvider - which is already implemented in Hibernate Validator- also in Bean Validation specification. >>> Thank you. >>> Peter >>> _______________________________________________ >>> beanvalidation-dev mailing list >>> beanvalidation-dev at lists.jboss.org >>> https://lists.jboss.org/mailman/listinfo/beanvalidation-dev >> >> >> _______________________________________________ >> beanvalidation-dev mailing list >> beanvalidation-dev at lists.jboss.org >> https://lists.jboss.org/mailman/listinfo/beanvalidation-dev >> > > > > _______________________________________________ > beanvalidation-dev mailing list > beanvalidation-dev at lists.jboss.org > https://lists.jboss.org/mailman/listinfo/beanvalidation-dev