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
|
@ -94,7 +94,7 @@ class TypeSafeActivator {
|
||||||
catch ( ClassNotFoundException e ) {
|
catch ( ClassNotFoundException e ) {
|
||||||
throw new AssertionFailure( "Entity class not found", e);
|
throw new AssertionFailure( "Entity class not found", e);
|
||||||
}
|
}
|
||||||
|
|
||||||
try {
|
try {
|
||||||
applyDDL( "", persistentClass, clazz, factory, groups, true );
|
applyDDL( "", persistentClass, clazz, factory, groups, true );
|
||||||
}
|
}
|
||||||
|
@ -215,7 +215,7 @@ class TypeSafeActivator {
|
||||||
|
|
||||||
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…
Reference in New Issue