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

Hardy Ferentschik hardy at hibernate.org
Wed Sep 4 06:39:39 EDT 2013


> Another use case may be Optional from JDK 8:
> 
>     @Size(min = 5)
>     Optional<String> name;

Is another upcoming change not "type annotations" which would allow Optional<@Size(min = 5) String>? That would of course be the preferable solution. 

--hardy





More information about the hibernate-dev mailing list