Hi,
Is there some kind of equivalent with ebean ? or is it possible to make one similar ?
I couldn't find how to permanently add some "user_id = session().get('userId')" stuff on every queries, without explicitly add them in custom model method.
Is there a way to make MyModel.find.all, MyModel.find.byId always use the ByUserId filter ? Or do i have to redefine all thoses methods and explicitly add the eq() part ?
I'm not sure how to do it the right way, so any help would be much apreciated :)
But i'm not sure the solution Guillaume Bort is talking about is applicable with only one DB.