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
use a value generator not means must use some predefined column types
The Problem
a column using uuid generator does not mean it only stored uuid. uuid just use as a default id strategy, and it prefer assigned id value. and now, mysql driver change uuid type from varchar to char. it break designs
The Solution
separate the options, make @Generated("uuid") is not equal to @Column({type:"uuid"}). just like hibernate-jpa generator is separate from column define.
Considered Alternatives
or define another type uuid2. one is varchar and other is char
Feature Description
use a value generator not means must use some predefined column types
The Problem
a column using uuid generator does not mean it only stored uuid. uuid just use as a default id strategy, and it prefer assigned id value. and now, mysql driver change uuid type from
varchar
tochar
. it break designsThe Solution
separate the options, make
@Generated("uuid")
is not equal to@Column({type:"uuid"})
. just like hibernate-jpa generator is separate from column define.Considered Alternatives
or define another type
uuid2
. one is varchar and other ischar
Additional Context
Relevant Database Driver(s)
aurora-data-api
aurora-data-api-pg
better-sqlite3
cockroachdb
cordova
expo
mongodb
mysql
nativescript
oracle
postgres
react-native
sap
sqlite
sqlite-abstract
sqljs
sqlserver
Are you willing to resolve this issue by submitting a Pull Request?
The text was updated successfully, but these errors were encountered: