You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We are using Micronaut 4.7.2, Hibernate Reactive 2.4.2.Final, and Oracle as our database. Since we are working with legacy data, our model entities utilize inheritance, specifically InheritanceType.JOINED.
I noticed that when we start our application, it attempts to create global temporary tables regardless of the hibernate.query.mutation_strategy.global_temporary.create_tables setting. This issue does not occur if we disable Hibernate Reactive by setting jpa.default.reactive to false.
While debugging the startup process, I came across the org.hibernate.reactive.query.sqm.mutation.internal.temptable.ReactiveGlobalTemporaryTableStrategy class. In its prepare method, the following code caught my attention:
if (!createIdTables) {
tableCreatedStage.complete(null);
}
Although the setting is read correctly, the method does not stop execution at this point. It proceeds to create the tables in the subsequent lines.
To address this, I overwrote this class in my project and added a return statement inside this conditional block. After making this change, the tables were no longer created. However, I am uncertain if this is the best approach and suspect this behavior might be a bug.
Thank you.
The text was updated successfully, but these errors were encountered:
Hello,
We are using Micronaut 4.7.2, Hibernate Reactive 2.4.2.Final, and Oracle as our database. Since we are working with legacy data, our model entities utilize inheritance, specifically
InheritanceType.JOINED
.I noticed that when we start our application, it attempts to create global temporary tables regardless of the
hibernate.query.mutation_strategy.global_temporary.create_tables
setting. This issue does not occur if we disable Hibernate Reactive by settingjpa.default.reactive
tofalse
.While debugging the startup process, I came across the
org.hibernate.reactive.query.sqm.mutation.internal.temptable.ReactiveGlobalTemporaryTableStrategy
class. In itsprepare
method, the following code caught my attention:I believe the issue lies in lines 65-67:
Although the setting is read correctly, the method does not stop execution at this point. It proceeds to create the tables in the subsequent lines.
To address this, I overwrote this class in my project and added a
return
statement inside this conditional block. After making this change, the tables were no longer created. However, I am uncertain if this is the best approach and suspect this behavior might be a bug.Thank you.
The text was updated successfully, but these errors were encountered: