On Tue, 08 Feb 2011 10:21:40 +0100, Emmanuel Bernard  
<emman...@hibernate.org> wrote:

> Let me summarize:
>  - BD extends TD
>  - BD#getConstrainedMethod() returns constraints getters and methods (*)
>  - BD#isBeanConstrained() does not change contract
>
> (*) it's the logical approach but I feel like it might be inconvenient.

why would it be inconvenient?

>> For HV 4.2 we could also do the following:
>>
>> TypeDescriptor extends ElementDescriptor {
>>
>>     boolean isTypeConstrained();
>>     Set<MethodDescriptor> getConstrainedMethods();
>>     MethodDescriptor getConstraintsForMethod(Method method);
>>
>>     getBeanDescriptor();
>> }

+1
_______________________________________________
hibernate-dev mailing list
hibernate-dev@lists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-dev

Reply via email to