Temporary table that Hibernate creates

Asked

Viewed 413 times

3

I’m using JPA and Hibernate 4.3.11 when running a simple application To test the bank connection Firebird 2.5 the Hibernate is generating A temporary table with the start HT_.

Example: created the Client table and generated

Hibernate:
create table HT_Cliente (id integer not null, hib_sess_id CHAR(36))

How do I disable this feature in Hibernate?

1 answer

1

Hibernate uses these Ht_tables as temporary tables to assist in operations like delete and update.

In this post, the author explains that there is a problem with Letes and cascading updates, to know which records need to be changed. It shows a native approach to solving the problem and then explains that the creation of Ht_tables by Hibernate, is the solution found by Hibernate for what is called Bulk Operations or mass operations.

As this is an approach used to ensure the integrity of the database, I believe that this functionality cannot be disabled, as stated in Soen.

  • 2

    Hello, Pedro! Can I suggest something? In addition to the links, increase your response by showing, even briefly, the reasons for this table to be created and other relevant information.

  • 1

    @Dherik grateful for the suggestion, see if the answer is better!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.