HHH-17071 Fix check for collections of converted embeddables
This commit is contained in:
parent
57e9efa4e2
commit
57f26f6b68
|
@ -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(
|
||||
|
|
Loading…
Reference in New Issue