问题
I have a problem with schema validation of revtype column of audit tables
I have declared revtype column as number(3) everything is working fine when i'm using oracle database but when i'm switch to h2 i have exception revtype
revtype column found decimal expected tinyint
Any ideas how can it works on h2 and oracle ?
回答1:
Extending h2 dialect and changing column definition for integer worked
来源:https://stackoverflow.com/questions/35925228/hibernate-entity-auditing-and-hbm2ddl-auto-validate-in-h2-and-oracle