cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <and...@objectstyle.org>
Subject Re: my first cayenne project
Date Tue, 17 Dec 2013 06:15:11 GMT
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.zeigler@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 <mvhatch@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.


Mime
View raw message