Grails

Querying Domain class with hasMany String Type

In my recent project there was a use case where I had to query domain's hasMany but relationship was not with any domain class but rather String type. Consider example [java] class Blog { static hasMany = [tags: String] } [/java] Now to find all the blogs with tag "grails" , our normal way of querying hasMany relationships...

by Puneet Behl
Tag: grails criteria
25-Sep-2012