I have a grails application which works with a legacy database.
I have in almost all tables a column, let’s say include. I want to include such entities in query results if and only if this column has a nonzero value.
Is there any way for specifying this on a per class / application criteria in grails, perhaps in a static mappings block? Currently I’m I specifying AND include == 1 whenever I make a database query.
I think this plugin will get you what you need.