开发者

Hibernate, MySQL Views and hibernate.hbm2ddl.auto = validate

开发者 https://www.devze.com 2022-12-16 04:04 出处:网络
I can use MySQL views in Hibernate by treating them like tables - ie. the entity is no different than one created for a table. However my application won\'t deploy when Hibernate is set to validate th

I can use MySQL views in Hibernate by treating them like tables - ie. the entity is no different than one created for a table. However my application won't deploy when Hibernate is set to validate the model as it can't find the View as it assumes it's a table.

Is it possible to use H开发者_如何学Pythonibernate Entities with deploy time validation turned on (hibernate.hbm2ddl.auto = validate)?

Thanks.


There are several issues in JIRA about this (HHH-2018, HHH-1872, and HHH-1329) so this might clearly be a new one. My understanding is that the easiest workaround for now is to turn hbm2ddl off. If you think that your case is not covered by the existing issues (e.g. because you are using MySQL), maybe open a new one.

0

精彩评论

暂无评论...
验证码 换一张
取 消