Author: hardy.ferentschik
Date: 2009-06-26 04:14:34 -0400 (Fri, 26 Jun 2009)
New Revision: 16953
Modified:
core/trunk/annotations/src/main/java/org/hibernate/cfg/beanvalidation/TypeSafeActivator.java
Log:
Made annotations compile again after latest changes to Hibernate Validator
Modified:
core/trunk/annotations/src/main/java/org/hibernate/cfg/beanvalidation/TypeSafeActivator.java
===================================================================
---
core/trunk/annotations/src/main/java/org/hibernate/cfg/beanvalidation/TypeSafeActivator.java 2009-06-25
15:43:42 UTC (rev 16952)
+++
core/trunk/annotations/src/main/java/org/hibernate/cfg/beanvalidation/TypeSafeActivator.java 2009-06-26
08:14:34 UTC (rev 16953)
@@ -94,7 +94,7 @@
catch ( ClassNotFoundException e ) {
throw new AssertionFailure( "Entity class not found", e);
}
-
+
try {
applyDDL( "", persistentClass, clazz, factory, groups, true );
}
@@ -215,7 +215,7 @@
private static void applySize(Property property, ConstraintDescriptor<?>
descriptor, PropertyDescriptor propertyDesc) {
if ( Size.class.equals( descriptor.getAnnotation().annotationType() )
- && String.class.equals( propertyDesc.getType() ) ) {
+ && String.class.equals( propertyDesc.getElementClass() ) ) {
@SuppressWarnings( "unchecked" )
ConstraintDescriptor<Size> sizeConstraint = (ConstraintDescriptor<Size>)
descriptor;
int max = sizeConstraint.getAnnotation().max();
Show replies by date