In xml to set up a filter on the target table of a many to many, you set
the filter element inside the many-to-many element
To support that in annotations, I could do
1.
@Filter (pointing to the association table or the target table if a
@OneToMany @JoinColumn)
@FilterManyToMany
On Sep 28, 2006, at 8:51 PM, Emmanuel Bernard wrote:
@Filter (pointing to the target table)
@FilterJoinTable (pointing to the association table)
I like 2. better, it is more consistent esp when you realize that
@OneToMany can use a join table just by changing an annotation.
2. would require
Done and committed
@Filter(s) applies to the target entity table
@FilterJoinTable(s) applies to the association table
in a symmetric way
@Where applies to the target entity table
@WhereJoinTable applies to the association table
If the book can still be updated...
Christian Bauer wrote:
On