On Wed, Jul 1, 2009 at 4:24 PM, Tom Nichols
<tmnichols@...> wrote:
Actually, I just tried this and it didn't quite work as expected. I got
groovy.lang.MissingPropertyException: No such property: NAME for class: Person
Have you ever encountered that? Apparently the row aliases are being
returned as uppercase, even though my query has them in lowercase. It
could be vendor-specific (I'm using Oracle) - any ideas there?
hmm just to test if the uppercase is the issue, create a Person class with the property NAME (all caps) and see if it works.
(Also, just to double check, make sure all fields returned in your query do have matching property definitions in your class, maybe for some weird reason it's barfing on 'name' when it's really some other property at the root of the problem? - I doubt it, but can't hurt to double check.)