How can I use grails domain classes (which is in groovy) in service layer which is in Java/Spring.
When using the grails MVC, everything is fine as I can use contro
Sample Code Snippet :
import my.package.User import org.codehaus.groovy.runtime.InvokerHelper; List allInstances = (List)InvokerHelper.invokeMethod(User.class, "list", null)); User one=(User)InvokerHelper.invokeMethod(User.class, "get", id);