Top Description Methods
org.hibernate.annotations

public @Interface WhereJoinTable

extends Annotation
Annotations
@Target:METHOD, FIELD
@Retention:RUNTIME
@Deprecated
since:6.3
Imports
java.lang.annotation.Retention, .Target

Deprecated

since 6.3.

Use SQLJoinTableRestriction

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.

API Note

This separate annotation is useful because it's possible to filter a many-to-many association both by a restriction on the join table, and, simultaneously, by a restriction on the associated entity table. The @Where annotation always filters entity tables.

Author
Emmanuel Bernard
See Also
Where

Method Summary

Modifier and TypeMethod and Description
public String
clause()

A predicate, written in native SQL.

Inherited from java.lang.annotation.Annotation:
annotationTypeequalshashCodetoString

Method Detail

clauseback to summary
public String clause()

A predicate, written in native SQL.