views:

33

answers:

0

Hi, i have this object

@Service
public class myBr {

   @PostFilter("filterObject.cellule.getId()==2")
   public List<Bibliotheque> getB() {
        return super.getAll();
    }


    public List<Bibliotheque> getA() {
        return getB();
    }

When i call from a test :

myBr.getB() the @PostFilter is applied but when i call myBr.getA() , this method is calling getB() the postfilter is not working.

is there a way to handle this ?

Regards

related questions