Quantcast

Hibernate Filter Plugin - Not working with domain associations : Grails 2.0.3

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate
star

Hibernate Filter Plugin - Not working with domain associations : Grails 2.0.3

Amit Jain-2
Greetings!

I am using hibernate-plugin. where I need to apply the filter to not only on a given domain but its associations as well. So I guess I need to use collection:' '. However, when I add collection to my hibernate filters definition, filtering criteria is not appended to the SQL query generated. It works when I remove it but only with the given domain not with its associations.

static hibernateFilters = {
        excludeDeletedFilter(condition: "status<>'DELETED'", collection:'states', default: true)
    }

Is it a bug or I need to use it differently.

Grails Version : 2.0.3
Hibernate Plugin Version : 1.3.1


Thanks,

--
Best Regards,
Amit Jain
IntelliGrape Software
Loading...