HHH-12784 Fix a regression in Javassist support

This commit is contained in:
Guillaume Smet 2018-07-10 13:15:28 +02:00
parent 579ee65fd3
commit d32997a32d
1 changed files with 5 additions and 2 deletions

View File

@ -8,6 +8,8 @@ package org.hibernate.bytecode.enhance.internal.javassist;
import java.util.Collection; import java.util.Collection;
import java.util.Locale; import java.util.Locale;
import java.util.Objects;
import javax.persistence.EmbeddedId; import javax.persistence.EmbeddedId;
import javax.persistence.Id; import javax.persistence.Id;
@ -20,7 +22,7 @@ import org.hibernate.bytecode.enhance.spi.EnhancerConstants;
/** /**
* utility class to generate interceptor methods * utility class to generate interceptor methods
* @see org.hibernate.engine.spi.PersistentAttributeInterceptor * @see org.hibernate.engine.spi.PersistentAttributeInterceptor
* *
* @author <a href="mailto:lbarreiro@redhat.com">Luis Barreiro</a> * @author <a href="mailto:lbarreiro@redhat.com">Luis Barreiro</a>
*/ */
public abstract class AttributeTypeDescriptor { public abstract class AttributeTypeDescriptor {
@ -64,7 +66,8 @@ public abstract class AttributeTypeDescriptor {
} }
builder.append( builder.append(
String.format( String.format(
" if ( !Objects.deepEquals( %s, $1 ) )", " if ( !%s.deepEquals( %s, $1 ) )",
Objects.class.getName(),
readFragment readFragment
) )
); );