[hibernate-dev] Filters and many to many

2006-09-28 Thread Emmanuel Bernard
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

Re: [hibernate-dev] Filters and many to many

2006-09-28 Thread Christian Bauer
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

Re: [hibernate-dev] Filters and many to many

2006-09-28 Thread Emmanuel Bernard
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