Return-Path: X-Original-To: apmail-cayenne-dev-archive@www.apache.org Delivered-To: apmail-cayenne-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D762A10D71 for ; Tue, 17 Dec 2013 06:15:47 +0000 (UTC) Received: (qmail 79452 invoked by uid 500); 17 Dec 2013 06:15:47 -0000 Delivered-To: apmail-cayenne-dev-archive@cayenne.apache.org Received: (qmail 78485 invoked by uid 500); 17 Dec 2013 06:15:41 -0000 Mailing-List: contact dev-help@cayenne.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cayenne.apache.org Delivered-To: mailing list dev@cayenne.apache.org Received: (qmail 78477 invoked by uid 99); 17 Dec 2013 06:15:39 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Dec 2013 06:15:39 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.78.103.231] (HELO vorsha.objectstyle.org) (208.78.103.231) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 17 Dec 2013 06:15:34 +0000 Received: (qmail 32631 invoked from network); 17 Dec 2013 06:24:41 -0000 Received: from unknown (HELO ?192.168.1.25?) (212.98.191.4) by vorsha.objectstyle.org with SMTP; 17 Dec 2013 06:24:41 -0000 Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Subject: Re: my first cayenne project From: Andrus Adamchik In-Reply-To: Date: Tue, 17 Dec 2013 09:15:11 +0300 Cc: mvhatch@gmail.com Content-Transfer-Encoding: quoted-printable Message-Id: References: To: dev@cayenne.apache.org X-Mailer: Apple Mail (2.1822) X-Virus-Checked: Checked by ClamAV on apache.org 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 = wrote: > Hi Michael, >=20 > I haven't tried grails, so I don't know whether there is any = interaction there. > But my code is littered with: >=20 > SelectQuery q =3D new SelectQuery(SomeEntity.class); >=20 > And it all works. >=20 > So it sounds like there may be some issue with your environment? >=20 > What version of Cayenne are you using? >=20 > Robert >=20 > On Dec 14, 2013, at 12/1412:24 PM , Michael Hatch = wrote: >=20 >> Hello developers, >>=20 >> 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.