Re: [hibernate-dev] [Validator] Applying constraints to property objects

2013-09-03 Thread Gunnar Morling
(using correct list now) 2013/9/3 Hardy Ferentschik > > > > > On 3 Sep 2013, at 15:58, Gunnar Morling wrote: > > > Hi, > > > > Yesterday George Gastaldi from the Forge team approached me regarding the > > application of constraints to "wrapped" properties. Their situation is > the > > followin

Re: [hibernate-dev] [Validator] Applying constraints to property objects

2013-09-03 Thread Gunnar Morling
2013/9/3 Emmanuel Bernard > Something like c makes sense. > Ok. > It similar to the notion of converter in JPA. > > But why not the following style of interfaces > > interface Convert { > To convert(From); > } > Yes, thinking more about it, it probably makes sense to support m

Re: [hibernate-dev] hiberate-commons-annotations and locating annotations

2013-09-03 Thread Emmanuel Bernard
On Tue 2013-09-03 17:22, Steve Ebersole wrote: > 2.a) It seems like there are times when > org.hibernate.cfg.AbstractPropertyHolder#parent would be useful for > what I need to do. But there appears to be times when this is null. > For entity mappings (ClassPropertyHolder) thats fine. But for the

[hibernate-dev] Fwd: Re: [Validator] Applying constraints to property objects

2013-09-03 Thread Emmanuel Bernard
___ hibernate-dev mailing list hibernate-dev@lists.jboss.org https://lists.jboss.org/mailman/listinfo/hibernate-dev

Re: [hibernate-dev] hiberate-commons-annotations and locating annotations

2013-09-03 Thread Steve Ebersole
Gah, stupid. Its the declared/non-declared status of the method/field that is important here, not the annotations... On Tue 03 Sep 2013 11:08:16 PM CDT, Steve Ebersole wrote: > FYI, unless I hear otherwise: > https://hibernate.atlassian.net/browse/HCANN-56 > > On Tue 03 Sep 2013 11:01:02 PM CDT,

Re: [hibernate-dev] hiberate-commons-annotations and locating annotations

2013-09-03 Thread Steve Ebersole
FYI, unless I hear otherwise: https://hibernate.atlassian.net/browse/HCANN-56 On Tue 03 Sep 2013 11:01:02 PM CDT, Steve Ebersole wrote: > > > org.hibernate.annotations.common.reflection.XAnnotatedElement > > On Tue 03 Sep 2013 05:22:22 PM CDT, Steve Ebersole wrote: >> After looking through this s

Re: [hibernate-dev] hiberate-commons-annotations and locating annotations

2013-09-03 Thread Steve Ebersole
org.hibernate.annotations.common.reflection.XAnnotatedElement On Tue 03 Sep 2013 05:22:22 PM CDT, Steve Ebersole wrote: > After looking through this some more, I think what you say could > almost work. But: > > 1) Still need a way to determine the declarer of a property rather > than just blind

Re: [hibernate-dev] hiberate-commons-annotations and locating annotations

2013-09-03 Thread Steve Ebersole
After looking through this some more, I think what you say could almost work. But: 1) Still need a way to determine the declarer of a property rather than just blindly accepting XProperty.getAnnotation(Convert.class). This is needed for the Super/Sub MappedSuperclass/Entity case in my initial

Re: [hibernate-dev] [Validator] Applying constraints to property objects

2013-09-03 Thread Emmanuel Bernard
Something like c makes sense. It similar to the notion of converter in JPA. But why not the following style of interfaces interface Convert { To convert(From); } On Tue 2013-09-03 15:58, Gunnar Morling wrote: > Hi, > > Yesterday George Gastaldi from the Forge team approached me

[hibernate-dev] [Validator] Applying constraints to property objects

2013-09-03 Thread Gunnar Morling
Hi, Yesterday George Gastaldi from the Forge team approached me regarding the application of constraints to "wrapped" properties. Their situation is the following: ... @Size(min=3, max=10) UIInput name; ... Here, UInput is some kind of UI component, wrapping the actual property v