How to get search results in grails if you have the domain (model) name stored in a string

Posted by Shekhar on Stack Overflow See other posts from Stack Overflow or by Shekhar
Published on 2010-05-07T06:03:42Z Indexed on 2010/05/07 6:08 UTC
Read the original article Hit count: 186

Filed under:
|
|
|
|

I have a method which has domain name as a String parameter.

def modelName="Equity"

I want to use it like

def results=modelName.findAll()

Please guide me!

© Stack Overflow or respective owner

Related posts about grails

Related posts about domain