We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0189680 commit 4c94ee7Copy full SHA for 4c94ee7
hibernate-core/src/main/java/org/hibernate/annotations/Filter.java
@@ -33,6 +33,16 @@
33
* }
34
* </pre>
35
* <p>
36
+ * Similarly, the filter could be applied to a one-to-many association
37
+ * like this:
38
+ * <pre>
39
+ * @OneToMany(mappedBy = "provider")
40
+ * @Filter(name = "Current",
41
+ * deduceAliasInjectionPoints = false,
42
+ * condition = "{alias}.year = extract(year from current_date)")
43
+ * List<Course> courses;
44
+ * </pre>
45
+ * <p>
46
* If an entity or collection has no {@code @Filter} annotation
47
* with the name of a given filter, it is not affected by that
48
* filter.
0 commit comments