Package org.hibernate.annotations
Annotation Type Filter
-
@Target({TYPE,METHOD,FIELD}) @Retention(RUNTIME) @Repeatable(Filters.class) public @interface Filter
Add filters to an entity or a target entity of a collection.
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description SqlFragmentAlias[]
aliases
The alias descriptors for injection.String
condition
The filter condition.boolean
deduceAliasInjectionPoints
If true, automatically determine all points within the condition fragment that an alias should be injected.
-
-
-
Element Detail
-
name
String name
The filter name.
-
-
-
deduceAliasInjectionPoints
boolean deduceAliasInjectionPoints
If true, automatically determine all points within the condition fragment that an alias should be injected. Otherwise, injection will only replace instances of explicit "{alias}" instances orSqlFragmentAlias
descriptors.- Default:
- true
-
-
-
aliases
SqlFragmentAlias[] aliases
The alias descriptors for injection.- Default:
- {}
-
-