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.
我认为这个插件可以满足您的需求。
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.