[hibernate-dev] HV-376

Hardy Ferentschik hibernate at ferentschik.de
Tue Feb 8 06:01:32 EST 2011


On Tue, 08 Feb 2011 10:21:40 +0100, Emmanuel Bernard  
<emmanuel at 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



More information about the hibernate-dev mailing list