• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to use multiple filters at class level

 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Problem1:
I have one filter already defined at the class level and wanted to have another filter at classs level. How to implement that?

Problem2:
My class structure is ClassA, ClassB and ClassC.

Class A contains set for Class B. They have one to many relationship.

ClassB and ClassC has many-to-one relationship. So I have following method call in my ClassB.
public ClassC getClassC(){//return instance of ClassC};

My initial filter in ClassA filters isactive='Y' column of Class B and works fine. This filter defined on the set collection of ClassB in Class A.

Now I have to define another filter at ClassA which filters
ClassB.ClassC.cityId =5 and it also need to implement at set collection of ClassB in ClassA.

How to do that?
 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As a second thought, if I can use multiple ParamDef in same filter that will also work.
But in that case I don't know how to put condition on the object of ClassC(i.e. ClassB.ClassC.cityId=:cityId)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic