HHH-17071 Fix check for collections of converted embeddables

This commit is contained in:
Marco Belladelli 2023-08-22 15:18:47 +02:00 committed by Christian Beikov
parent 57e9efa4e2
commit 57f26f6b68
1 changed files with 2 additions and 1 deletions

View File

@ -39,6 +39,7 @@ import org.hibernate.resource.beans.spi.ManagedBeanRegistry;
import org.hibernate.usertype.CompositeUserType;
import jakarta.persistence.Column;
import jakarta.persistence.Convert;
import jakarta.persistence.Embeddable;
import jakarta.persistence.Embedded;
import jakarta.persistence.EmbeddedId;
@ -147,7 +148,7 @@ public class EmbeddableBinder {
static boolean isEmbedded(XProperty property, XClass returnedClass) {
return property.isAnnotationPresent( Embedded.class )
|| property.isAnnotationPresent( EmbeddedId.class )
|| returnedClass.isAnnotationPresent( Embeddable.class );
|| returnedClass.isAnnotationPresent( Embeddable.class ) && !property.isAnnotationPresent( Convert.class );
}
private static Component bindEmbeddable(