I want to match the result of my own SQL query with a simple bean in grails, similar to what the @SqlResultSetMapping annotation does.
For example, given the request
select x.foo, y.bar, z.baz from //etc...
display result in
class FooBarBaz { String foo String bar String baz }
Can someone provide an example of how to do this in the grail? Thanks in advance.
source share