Annotation Interface Join
@Retention(RUNTIME)
@Target({PARAMETER,TYPE})
@Repeatable(RepeatedJoin.class)
public @interface Join
Specifies a join part of a query, e.g.
select c from Customer c inner join c.addresses a- Author:
- Tomasz Kaczmarzyk
-
Required Element Summary
Required Elements -
Optional Element Summary
Optional Elements
-
Element Details
-
-
distinct
boolean distinctHibernate since version 6.0 deduplicates results (https://github.com/hibernate/hibernate-orm/blob/6.0/migration-guide.adoc#query-sqm-distinct). For the paged and count queries the distinct should be set to true (default behaviour) in main cases. Changing distinct to false (when using Hibernate) makes sense only in count queries -- in all other cases it will lead to unexpected behaviour.- Default:
- true
-
type
jakarta.persistence.criteria.JoinType type- Default:
- LEFT
-