Hibernate HT_ Temporary Tables ON JOINED继承,从Hibernate 3.4.0.GA迁移到5.1 [英] Hibernate HT_ Temporary Tables ON JOINED inheritance, Migration from Hibernate 3.4.0.GA To 5.1

查看:240
本文介绍了Hibernate HT_ Temporary Tables ON JOINED继承,从Hibernate 3.4.0.GA迁移到5.1的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试将应用程序从Hibernate 3.4.0.GA迁移到Hibernate 5.1,并且在完成对java代码的必要更改后,当我部署应用程序时,我正在观察Hibernate如何尝试创建HT_表(全局临时),每个 @Inheritance 带注释的实体。

I'm trying to migrate an application from Hibernate 3.4.0.GA to Hibernate 5.1, and after complete the required changes on java code, when I deploy the application I'm watching how Hibernate is trying to create HT_ tables (global temporary), one for each @Inheritance annotated entity.

在Google上搜索我找到为什么要创建这些表。

Searching on Google I've found why the tables are being created.

但在我的情况下,我们不允许更改de数据库以添加新表。

But in my case we are not allow to change de database to add new tables.

我的继承模型只有一个继承级别和它简单的示例

My Inheritance model only has one level of Inheritance and its simple, example

是否有人知道可用于避免创建HT_表的分层表结构的任何替代表示,或者某些Hibernate配置将相同的purp ose?。

Does anyone knows any alternative representation for a hierarchical table structure that I can use to avoid the HT_ tables creation, or some Hibernate configuration to archive the same purpose?.

我可以更改我们的实体或Hibernate配置上的继承层次结构。如果部署的其他部分没有阻塞,我也可以假设由于非创建表导致的部署异常。

I can change the inheritance hierarchy on our entities or the Hibernate configuration. I can also asume an exception on deploy caused by the non creation of the tables if it´s non blocking for the rest of the deploy.

预先感谢您。

更新1: 来自Hibernate官方论坛的新信息

更新2: Bug修复了

UPDATE 3 : 博客文章解释与此问题相关的不同批量策略

推荐答案

如同在 link 是Hibernate官方论坛提供的一个可能的解决方案。

As in update one on this link is more info from Hibernate official forum with a possible solution.

更新: 与解决方案链接

这篇关于Hibernate HT_ Temporary Tables ON JOINED继承,从Hibernate 3.4.0.GA迁移到5.1的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆