mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-10 05:04:52 +00:00
Made annotations compile again after latest changes to Hibernate Validator
git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@16953 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
parent
3b447b344b
commit
d83fc6e17b
@ -215,7 +215,7 @@ private static void applyDigits(Property property, ConstraintDescriptor<?> descr
|
|||||||
|
|
||||||
private static void applySize(Property property, ConstraintDescriptor<?> descriptor, PropertyDescriptor propertyDesc) {
|
private static void applySize(Property property, ConstraintDescriptor<?> descriptor, PropertyDescriptor propertyDesc) {
|
||||||
if ( Size.class.equals( descriptor.getAnnotation().annotationType() )
|
if ( Size.class.equals( descriptor.getAnnotation().annotationType() )
|
||||||
&& String.class.equals( propertyDesc.getType() ) ) {
|
&& String.class.equals( propertyDesc.getElementClass() ) ) {
|
||||||
@SuppressWarnings( "unchecked" )
|
@SuppressWarnings( "unchecked" )
|
||||||
ConstraintDescriptor<Size> sizeConstraint = (ConstraintDescriptor<Size>) descriptor;
|
ConstraintDescriptor<Size> sizeConstraint = (ConstraintDescriptor<Size>) descriptor;
|
||||||
int max = sizeConstraint.getAnnotation().max();
|
int max = sizeConstraint.getAnnotation().max();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user