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
I would like to seek clarification regarding the behavior of implicit joins when using Hibernate's @SoftDelete annotation in combination with a @ManyToOne relationship, particularly when the related entity is soft-deleted.
By default, implicit joins are usually generated as JOIN. This behavior can typically be adjusted using Blaze Persistence's joinDefault configuration. However, when the query involves pagination, the configured join type does not appear to take effect. Even when explicitly specifying the join type using joinOn, the generated query consistently includes a default JOIN to the soft-deleted entity.
Is this behavior expected, or is there an alternative approach to ensure the desired join type is respected in paginated queries?
Hi, when fetching entities, Hibernate ORM has to eagerly join such associations to determine nullity. You could use Entity-Views instead, or enable enhancement to defer the join/query to the first access of the association.
I would like to seek clarification regarding the behavior of implicit joins when using Hibernate's
@SoftDelete
annotation in combination with a@ManyToOne
relationship, particularly when the related entity is soft-deleted.By default, implicit joins are usually generated as
JOIN
. This behavior can typically be adjusted using Blaze Persistence'sjoinDefault
configuration. However, when the query involves pagination, the configured join type does not appear to take effect. Even when explicitly specifying the join type usingjoinOn
, the generated query consistently includes a defaultJOIN
to the soft-deleted entity.Is this behavior expected, or is there an alternative approach to ensure the desired join type is respected in paginated queries?
Version:
Blaze-Persistence: 1.6.14
JPA-Provider: Hibernate 6.6.2.Final
DBMS: PostgreSQL 16
Application: Spring Boot 3.4.0
The text was updated successfully, but these errors were encountered: