diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EmbeddableMappingTypeImpl.java b/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EmbeddableMappingTypeImpl.java index 703d01afc2..cd5ce395ae 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EmbeddableMappingTypeImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EmbeddableMappingTypeImpl.java @@ -766,8 +766,8 @@ public class EmbeddableMappingTypeImpl extends AbstractEmbeddableMapping impleme bootDescriptor.getTable().getName(), discriminatorColumnExpression, isFormula, - true, - true, + !isFormula, + !isFormula, columnDefinition, selectable.getCustomReadExpression(), length,