Package org.hibernate.annotations
Annotation Interface SQLJoinTableRestriction
Specifies a restriction written in native SQL to add to the generated SQL
when querying the join table
of a collection.
For example, @SQLJoinTableRestriction("status <> 'DELETED'")
could be used to hide associations which have been soft-deleted from an
association table.
- Since:
- 6.3
- Author:
- Gavin King, Emmanuel Bernard
- See Also:
-
Required Element Summary
Required Elements
-
Element Details
-
value
String valueA predicate, written in native SQL.
-