diff --git a/model/jpa/src/main/java/org/keycloak/authorization/jpa/entities/PolicyEntity.java b/model/jpa/src/main/java/org/keycloak/authorization/jpa/entities/PolicyEntity.java index 53dab5ff61..d7c5d252c5 100644 --- a/model/jpa/src/main/java/org/keycloak/authorization/jpa/entities/PolicyEntity.java +++ b/model/jpa/src/main/java/org/keycloak/authorization/jpa/entities/PolicyEntity.java @@ -41,9 +41,7 @@ import jakarta.persistence.UniqueConstraint; import org.hibernate.annotations.BatchSize; import org.hibernate.annotations.Fetch; import org.hibernate.annotations.FetchMode; -import org.hibernate.annotations.JdbcType; import org.hibernate.annotations.Nationalized; -import org.hibernate.type.descriptor.jdbc.VarcharJdbcType; import org.keycloak.representations.idm.authorization.DecisionStrategy; import org.keycloak.representations.idm.authorization.Logic; @@ -88,11 +86,9 @@ public class PolicyEntity { private String type; @Column(name = "DECISION_STRATEGY") - @JdbcType(VarcharJdbcType.class) private DecisionStrategy decisionStrategy = DecisionStrategy.UNANIMOUS; @Column(name = "LOGIC") - @JdbcType(VarcharJdbcType.class) private Logic logic = Logic.POSITIVE; @ElementCollection(fetch = FetchType.LAZY) diff --git a/model/jpa/src/main/java/org/keycloak/authorization/jpa/entities/ResourceServerEntity.java b/model/jpa/src/main/java/org/keycloak/authorization/jpa/entities/ResourceServerEntity.java index 7c4cde6769..ed92c62ad2 100644 --- a/model/jpa/src/main/java/org/keycloak/authorization/jpa/entities/ResourceServerEntity.java +++ b/model/jpa/src/main/java/org/keycloak/authorization/jpa/entities/ResourceServerEntity.java @@ -18,8 +18,6 @@ package org.keycloak.authorization.jpa.entities; -import org.hibernate.annotations.JdbcType; -import org.hibernate.type.descriptor.jdbc.VarcharJdbcType; import org.keycloak.representations.idm.authorization.DecisionStrategy; import org.keycloak.representations.idm.authorization.PolicyEnforcementMode; @@ -43,7 +41,6 @@ public class ResourceServerEntity { private boolean allowRemoteResourceManagement; @Column(name = "POLICY_ENFORCE_MODE") - @JdbcType(VarcharJdbcType.class) private PolicyEnforcementMode policyEnforcementMode = PolicyEnforcementMode.ENFORCING; @Column(name = "DECISION_STRATEGY")