mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +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
@ -94,7 +94,7 @@ public static void applyDDL(Collection<PersistentClass> persistentClasses, Prope
|
||||
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 applyDigits(Property property, ConstraintDescriptor<?> descr
|
||||
|
||||
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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user