I am not sure what you have in mind exactly and it is the first time I
am looking at
http://docs.jboss.org/hibernate/orm/3.6/reference/en-US/html/filters.html
But it seems to me this shoulnd't be hard with slick. To mimic part of
their example (Config is a class you define):
def applyFilter[T,E](config:Config, q: Query[T,E]) =
q.filter(r => config.minLength <= r.length &&
config.maxLength >= r.length
)
def getForests = db.withSession{ implicit session =
applyFilter( config, someQuery ).list.toSet
}