Hibernate Entity Auditing and hbm2ddl.auto=validate in h2 and oracle

早过忘川 提交于 2019-12-25 04:33:33

问题


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

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!