Hibernate Entity Auditing and hbm2ddl.auto=validat

2019-09-14 11:23发布

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条回答
叛逆
2楼-- · 2019-09-14 11:48

Extending h2 dialect and changing column definition for integer worked

查看更多
登录 后发表回答