Add enums module: enum mapping in Hibernate 7.4.17.Final (ORDINAL trap, STRING, PostgreSQL native enum, AttributeConverter, @EnumeratedValue), what release 2 reads and writes after a constant is inserted, appended or renamed, hbm2ddl=update limits, migrations (H2 2.4.240, PostgreSQL 18.6)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_017ic4b5y3ArhRbakfu1ELsP
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
# hibernate.type.prefer_native_enum_types on plain @Enumerated(STRING)
|
||||
# Hibernate ORM 7.4.17.Final, H2 2.4.240 and PostgreSQL 18.6, JDK 25
|
||||
|
||||
== H2
|
||||
-- prefer_native_enum_types=false
|
||||
column type: ENUM
|
||||
-- prefer_native_enum_types=true
|
||||
column type: ENUM
|
||||
|
||||
== PostgreSQL 18
|
||||
-- prefer_native_enum_types=false
|
||||
column type: character varying(255)
|
||||
check: CHECK (((status)::text = ANY ((ARRAY['NEW'::character varying, 'PAID'::character varying, 'SHIPPED'::character varying])::text[])))
|
||||
-- prefer_native_enum_types=true
|
||||
column type: statusv1
|
||||
Reference in New Issue
Block a user