You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PostgreSQLEnumType does not override EnumType#sqlTypes(), what means, it will return a value based onEnumType#enumValueConverter, which is never used by PostgreSQLEnumType. enumValueConverter is chosen based on what is set in the @Enumerated, so to make it work one have to annotate a property with both @Type( type = "pgsql_enum" ) and @Enumerated(EnumType.STRING) or it will default to @Enumerated(EnumType.ORDINAL). This feels redundant, since the both annotations define a type mapping and having to specify @Enumerated(EnumType.STRING) is just a workaround for the wrong default.
The text was updated successfully, but these errors were encountered:
PostgreSQLEnumType
does not overrideEnumType#sqlTypes()
, what means, it will return a value based onEnumType#enumValueConverter
, which is never used byPostgreSQLEnumType
.enumValueConverter
is chosen based on what is set in the@Enumerated
, so to make it work one have to annotate a property with both@Type( type = "pgsql_enum" )
and@Enumerated(EnumType.STRING)
or it will default to @Enumerated(EnumType.ORDINAL). This feels redundant, since the both annotations define a type mapping and having to specify@Enumerated(EnumType.STRING)
is just a workaround for the wrong default.The text was updated successfully, but these errors were encountered: