Hibernate HT_ Temporary Tables ON JOINED inheritance, Migration from Hibernate 3.4.0.GA To 5.1

12,822

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

UPDATE: Link with the solution

Share:
12,822
Javier Toja
Author by

Javier Toja

BY DAY: An active Java developer and a performance enthusiast. BY NIGHT: A technology lover, and a dedicated book reader. FOR FUN: Play electric Guitar and go running.

Updated on June 09, 2022

Comments

  • Javier Toja
    Javier Toja almost 2 years

    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.

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

    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

    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?.

    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.

    Thank you in advance.

    UPDATE 1: New info from Hibernate official forum.

    UPDATE 2: The Bug was fixed

    UPDATE 3: A blog entry explaining different bulk Strategies related to the issue

  • Javier Toja
    Javier Toja almost 5 years
    @snso i have updated the link, thanks for report the broken link