Yep. SelectQuery(Class) is used in like 90% of everyone's code. This most certainly works in all versions.
Andrus On Dec 15, 2013, at 1:53 AM, Robert Zeigler <robert.zeig...@roxanemy.com> wrote: > Hi Michael, > > I haven't tried grails, so I don't know whether there is any interaction > there. > But my code is littered with: > > SelectQuery q = new SelectQuery(SomeEntity.class); > > And it all works. > > So it sounds like there may be some issue with your environment? > > What version of Cayenne are you using? > > Robert > > On Dec 14, 2013, at 12/1412:24 PM , Michael Hatch <mvha...@gmail.com> wrote: > >> Hello developers, >> >> I just started my first project utilizing cayenne (and grails). I was >> surprised that following the tutorial was not working for me, by which I >> mean I could not get a simple SelectQuery(Class) to return anything other >> than null. I downloaded the source to the server jar and identified that >> the non-default constructor did nothing. I modified the source to have the >> non-default construct that accepts a class or a string to call "this()" >> before calling init and all was well. I have no idea how you have had so >> many releases and tutorial documentation stating that a simple >> SelectQuery(Class) would return anything, when clearly it doesn't.