Package org.hibernate.annotations
Annotation Interface WhereJoinTable
@Target({METHOD,FIELD})
@Retention(RUNTIME)
@Deprecated(since="6.3")
public @interface WhereJoinTable
Deprecated.
Specifies a restriction written in native SQL to add to the generated SQL
when querying the join table
of a collection.
For example, @WhereJoinTable("status <> 'DELETED'")
could be used to hide associations which have been soft-deleted from an
association table.
-
Required Element Summary
Required Elements
-
Element Details
-
clause
String clauseDeprecated.A predicate, written in native SQL.
-
SQLJoinTableRestriction