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;
@ -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
) )
); );