From swansonlinda@example.org Thu Mar 01 09:49:41 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 9268 invoked from network); 1 Mar 2007 09:49:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Mar 2007 09:49:41 -0000 Received: (qmail 33386 invoked by uid 500); 1 Mar 2007 09:49:49 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 33371 invoked by uid 500); 1 Mar 2007 09:49:49 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 33362 invoked by uid 99); 1 Mar 2007 09:49:49 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 01:49:49 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO fmmailgate03.web.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 01:49:37 -0800 Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [83.161.120.155]) by fmmailgate03.web.de (Postfix) with ESMTP id 9B68A63F0528 for <swansonlinda@example.org>; Thu, 1 Mar 2007 10:47:54 +0100 (CET) Received: from [83.161.120.155] (helo=[83.161.120.155]) by smtp08.web.de with asmtp (WEB.DE 4.107 #114) id 1HMhtC-0005Mr-00 for swansonlinda@example.org; Thu, 01 Mar 2007 10:47:54 +0100 Message-ID: <swansonlinda@example.org> Date: Thu, 01 Mar 2007 10:53:25 +0100 From: Manuel Thiemann <swansonlinda@example.org> User-Agent: Thunderbird 83.161.120.155 (Windows/20061207) MIME-Version: 1.0 To: swansonlinda@example.org Subject: "PK Generation Strategy: Database-Generated" doesn't work Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: swansonlinda@example.org X-Sender: swansonlinda@example.org X-Virus-Checked: Checked by ClamAV on apache.org Hello, I just started playing a bit with Cayenne to find out how things work. Therefore I created a database (HSQL) with a single table and in the CayenneModeler set "Primary Key Generation Strategy" to "Database-Generated" and the "Auto Increment" field to "ID (INTEGER)" which is the column defined as Primary Key at the attributes tab. However when I try to insert a row in my test program I get an exception because I don't have an AUTO_PK_SUPPORT table in my database. But as far as I understand I don't not need this table if primary keys are generated by the database itself. Is there something else I have to configure to not need to have that table (It works fine if I create that table via "Generate Database Schema" but I would prefer to have the database doing that primary key stuff. Or is there any reason that it is better to use AUTO_PK_SUPPORT)? Thanx for help. Manuel From swansonlinda@example.org Thu Mar 01 09:52:30 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 10244 invoked from network); 1 Mar 2007 09:52:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Mar 2007 09:52:30 -0000 Received: (qmail 39984 invoked by uid 500); 1 Mar 2007 09:52:38 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 39973 invoked by uid 500); 1 Mar 2007 09:52:38 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Delivered-To: moderator for swansonlinda@example.org Received: (qmail 15562 invoked by uid 99); 28 Feb 2007 22:02:00 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Message-ID: <swansonlinda@example.org> Date: Wed, 28 Feb 2007 23:07:11 +0100 From: Manuel Thiemann <swansonlinda@example.org> User-Agent: Thunderbird 83.161.120.155 (Windows/20061207) MIME-Version: 1.0 To: swansonlinda@example.org Subject: PK Generation Strategy: Database-Generated doesn't work Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: swansonlinda@example.org X-Sender: swansonlinda@example.org X-Virus-Checked: Checked by ClamAV on apache.org Hello, I just started playing a bit with Cayenne. Therefore I created a table and set "Primary Key Generation Strategy" to "Database-Generated" and the "Auto Increment" field to "ID (INTEGER)" which is the column defined as Primary Key at the attributes tab. However when I try to insert a row in my test program I get an exception because I don't have a AUTO_PK_SUPPORT table. But as far as I understand I don't not need this table if primary keys are generated by the database itself. Is there something else I have to configure to not need to have that table (It works fine if I create that table via "Generate Database Schema" but I would prefer to have the database doing that primary key stuff)? Thanx for help. Manuel From swansonlinda@example.org Thu Mar 01 11:22:41 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 47270 invoked from network); 1 Mar 2007 11:22:41 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Mar 2007 11:22:41 -0000 Received: (qmail 93250 invoked by uid 500); 1 Mar 2007 11:22:49 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 93238 invoked by uid 500); 1 Mar 2007 11:22:48 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 93224 invoked by uid 99); 1 Mar 2007 11:22:48 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 03:22:48 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO byaroza.objectstyle.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Thu, 01 Mar 2007 03:22:37 -0800 Received: (qmail 14453 invoked from network); 1 Mar 2007 11:22:16 -0000 Received: from unknown (HELO ??2?????IPv888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4:1?) (83.161.120.155) by localhost with SMTP; 1 Mar 2007 11:22:16 -0000 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <swansonlinda@example.org> References: <swansonlinda@example.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <swansonlinda@example.org> Content-Transfer-Encoding: 7bit From: Andrus Adamchik <swansonlinda@example.org> Subject: Re: "PK Generation Strategy: Database-Generated" doesn't work Date: Thu, 1 Mar 2007 13:22:14 +0200 To: swansonlinda@example.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Hi Manuel, Per http://cayenne.apache.org/doc/generated-columns.html DB-generated pk depends on support of this feature by the underlying JDBC driver. Our testing showed that it only works in MySQL, Derby and SQLServer. For HSQLDB this feature is turned off (I just tried it on HSQL 83.161.120.155 - the driver support isn't there), so Cayenne behavior is to fail over to the AUTO_PK_SUPPORT lookup table. As auto-increment feature makes it to other JDBC drivers (including HSQL), we'll turn it on in Cayenne accordingly. Andrus On Mar 1, 2007, at 11:53 AM, Manuel Thiemann wrote: > Hello, > > I just started playing a bit with Cayenne to find out how things > work. Therefore I created a database (HSQL) with a single table and > in the CayenneModeler set "Primary Key Generation Strategy" to > "Database-Generated" and the "Auto Increment" field to "ID > (INTEGER)" which is the column defined as Primary Key at the > attributes tab. However when I try to insert a row in my test > program I get an exception because I don't have an AUTO_PK_SUPPORT > table in my database. But as far as I understand I don't not need > this table if primary keys are generated by the database itself. Is > there something else I have to configure to not need to have that > table (It works fine if I create that table via "Generate Database > Schema" but I would prefer to have the database doing that primary > key stuff. Or is there any reason that it is better to use > AUTO_PK_SUPPORT)? > > Thanx for help. > > Manuel > From swansonlinda@example.org Thu Mar 01 12:13:17 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 62060 invoked from network); 1 Mar 2007 12:13:17 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 1 Mar 2007 12:13:17 -0000 Received: (qmail 51881 invoked by uid 500); 1 Mar 2007 12:13:26 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 51640 invoked by uid 500); 1 Mar 2007 12:13:25 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 51631 invoked by uid 99); 1 Mar 2007 12:13:25 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 04:13:25 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO fmmailgate02.web.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Mar 2007 04:13:13 -0800 Received: from smtp08.web.de (fmsmtp08.dlan.cinetic.de [83.161.120.155]) by fmmailgate02.web.de (Postfix) with ESMTP id 91CAD645DCD1 for <swansonlinda@example.org>; Thu, 1 Mar 2007 13:12:52 +0100 (CET) Received: from [83.161.120.155] (helo=[83.161.120.155]) by smtp08.web.de with asmtp (WEB.DE 4.107 #114) id 1HMk9U-0002Uv-00 for swansonlinda@example.org; Thu, 01 Mar 2007 13:12:52 +0100 Message-ID: <swansonlinda@example.org> Date: Thu, 01 Mar 2007 13:18:10 +0100 From: Manuel Thiemann <swansonlinda@example.org> User-Agent: Thunderbird 83.161.120.155 (Windows/20061207) MIME-Version: 1.0 To: swansonlinda@example.org Subject: Re: "PK Generation Strategy: Database-Generated" doesn't work References: <swansonlinda@example.org> <swansonlinda@example.org> In-Reply-To: <swansonlinda@example.org> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Sender: swansonlinda@example.org X-Sender: swansonlinda@example.org X-Virus-Checked: Checked by ClamAV on apache.org Hi Andreas, thank you very much for your quick reply. I want to apologize for for sending this question twice. After receiving a request to confirm my subscription to the mailing list today I assumed that the mail I sent yesterday were rejected because the subscription was not yet activated and I didn't get any confirmation until short after I sent it a second time. I'm sorry for that. Manuel Andrus Adamchik wrote: > Hi Manuel, > > Per http://cayenne.apache.org/doc/generated-columns.html DB-generated pk > depends on support of this feature by the underlying JDBC driver. Our > testing showed that it only works in MySQL, Derby and SQLServer. For > HSQLDB this feature is turned off (I just tried it on HSQL 83.161.120.155 - the > driver support isn't there), so Cayenne behavior is to fail over to the > AUTO_PK_SUPPORT lookup table. > > As auto-increment feature makes it to other JDBC drivers (including > HSQL), we'll turn it on in Cayenne accordingly. > > Andrus > > On Mar 1, 2007, at 11:53 AM, Manuel Thiemann wrote: > >> Hello, >> >> I just started playing a bit with Cayenne to find out how things work. >> Therefore I created a database (HSQL) with a single table and in the >> CayenneModeler set "Primary Key Generation Strategy" to >> "Database-Generated" and the "Auto Increment" field to "ID (INTEGER)" >> which is the column defined as Primary Key at the attributes tab. >> However when I try to insert a row in my test program I get an >> exception because I don't have an AUTO_PK_SUPPORT table in my >> database. But as far as I understand I don't not need this table if >> primary keys are generated by the database itself. Is there something >> else I have to configure to not need to have that table (It works fine >> if I create that table via "Generate Database Schema" but I would >> prefer to have the database doing that primary key stuff. Or is there >> any reason that it is better to use AUTO_PK_SUPPORT)? >> >> Thanx for help. >> >> Manuel >> > > From swansonlinda@example.org Fri Mar 02 19:53:25 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 30020 invoked from network); 2 Mar 2007 19:53:24 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Mar 2007 19:53:24 -0000 Received: (qmail 20146 invoked by uid 500); 2 Mar 2007 19:53:32 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 20127 invoked by uid 500); 2 Mar 2007 19:53:32 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 20118 invoked by uid 99); 2 Mar 2007 19:53:32 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 11:53:32 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of swansonlinda@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ciao.gmane.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 11:53:20 -0800 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HNDoC-0000tw-Eg for swansonlinda@example.org; Fri, 02 Mar 2007 20:52:52 +0100 Received: from mail2.hayesinc.com ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <swansonlinda@example.org>; Fri, 02 Mar 2007 20:52:52 +0100 Received: from aperez by mail2.hayesinc.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <swansonlinda@example.org>; Fri, 02 Mar 2007 20:52:52 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: swansonlinda@example.org From: Arturo Perez <swansonlinda@example.org> Subject: Java5: the expression of type list needs unchecked conversion Date: Fri, 02 Mar 2007 14:52:46 -0500 Organization: Hayes, Inc. Lines: 9 Message-ID: <swansonlinda@example.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Complaints-To: swansonlinda@example.org X-Gmane-NNTP-Posting-Host: mail2.hayesinc.com User-Agent: Pan/0.14.2 (This is not a psychotic episode. It's a cleansing moment of clarity.) Sender: news <swansonlinda@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Hi all, I'm using Eclipse and Java6 now. Whenever I do anything with performQuery() the IDE complains that the expression of type list needs unchecked conversion. I'm sure I could turn that off in the IDE but is there a way to write it so that the warning goes away? I tried casting. -arturo From swansonlinda@example.org Fri Mar 02 22:15:36 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 85453 invoked from network); 2 Mar 2007 22:15:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 2 Mar 2007 22:15:36 -0000 Received: (qmail 66631 invoked by uid 500); 2 Mar 2007 22:15:44 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 66464 invoked by uid 500); 2 Mar 2007 22:15:43 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 66455 invoked by uid 99); 2 Mar 2007 22:15:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 14:15:43 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of swansonlinda@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO ciao.gmane.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 14:15:30 -0800 Received: from root by ciao.gmane.org with local (Exim 4.43) id 1HNG1m-0000Jt-41 for swansonlinda@example.org; Fri, 02 Mar 2007 23:15:02 +0100 Received: from dsl-242-17-73.telkomadsl.co.za ([83.161.120.155]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <swansonlinda@example.org>; Fri, 02 Mar 2007 23:15:02 +0100 Received: from sabob1 by dsl-242-17-73.telkomadsl.co.za with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for <swansonlinda@example.org>; Fri, 02 Mar 2007 23:15:02 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: swansonlinda@example.org From: bob <swansonlinda@example.org> Subject: UseSharedCache programatic override failure Date: Sat, 03 Mar 2007 00:03:14 +0200 Lines: 38 Message-ID: <swansonlinda@example.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: swansonlinda@example.org X-Gmane-NNTP-Posting-Host: dsl-242-17-73.telkomadsl.co.za User-Agent: Thunderbird 83.161.120.155 (Windows/20061207) Sender: news <swansonlinda@example.org> X-Virus-Checked: Checked by ClamAV on apache.org Hi all Using Cayenne 1.2.2, jdk5. In the modeler under cache configuration the "use shared cache" is disabled. This value I want to override programatically for example: boolean useSharedCache = true; DataContext context = DataContext.createDataContext(useSharedCache); DataObjectUtils.objectForPK(context, Employee.class, 200); This throws a nullpointer. Stack trace below. Is this valid use of the API? If I enable the "use shared cache" in the modeler this works fine, so its not a big issue. Stacktrace: Exception in thread "main" java.lang.NullPointerException org.objectstyle.cayenne.access.DataDomainQueryAction.interceptOIDQuery(DataDomainQueryAction.java:166) org.objectstyle.cayenne.access.DataDomainQueryAction.execute(DataDomainQueryAction.java:143) org.objectstyle.cayenne.access.DataDomain.onQuery(DataDomain.java:766) org.objectstyle.cayenne.util.ObjectContextQueryAction.runQuery(ObjectContextQueryAction.java:253) org.objectstyle.cayenne.access.DataContextQueryAction.execute(DataContextQueryAction.java:90) org.objectstyle.cayenne.access.DataContext.onQuery(DataContext.java:1423) org.objectstyle.cayenne.access.DataContext.performQuery(DataContext.java:1412) org.objectstyle.cayenne.DataObjectUtils.objectForQuery(DataObjectUtils.java:290) org.objectstyle.cayenne.DataObjectUtils.objectForPK(DataObjectUtils.java:276) org.objectstyle.cayenne.DataObjectUtils.objectForPK(DataObjectUtils.java:167) test.CacheOverride.main(CacheOverride.java:20) regards bob From swansonlinda@example.org Sat Mar 03 05:47:38 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 5408 invoked from network); 3 Mar 2007 05:47:38 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Mar 2007 05:47:38 -0000 Received: (qmail 50904 invoked by uid 500); 3 Mar 2007 05:47:46 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 50885 invoked by uid 500); 3 Mar 2007 05:47:46 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 50876 invoked by uid 99); 3 Mar 2007 05:47:45 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 21:47:45 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of swansonlinda@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO fish.ish.com.au) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 02 Mar 2007 21:47:34 -0800 Received: from [83.161.120.155] (helo=[83.161.120.155]) by fish.ish.com.au with esmtp (Exim 4.43) id 1HNN5F-0003GN-Sr for swansonlinda@example.org; Sat, 03 Mar 2007 16:47:09 +1100 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <swansonlinda@example.org> References: <swansonlinda@example.org> <swansonlinda@example.org> <swansonlinda@example.org> <swansonlinda@example.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <swansonlinda@example.org> Content-Transfer-Encoding: 7bit From: Marcin Skladaniec <swansonlinda@example.org> Subject: Re: expression to find out null relationship Date: Sat, 3 Mar 2007 15:47:03 +1000 To: swansonlinda@example.org X-Mailer: Apple Mail (2.752.2) X-Spam-Score: -1.4 (-) X-Spam-Report: -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP X-Virus-Checked: Checked by ClamAV on apache.org Hi I'm still struggling trying to fetch only AppleTrees with Apples which are red. Apple -AppleTree is a simple many-to-one relationship. I dont want to fault every appleTree and apple, I want to use either NamedQuery or Expression. When I attempt with NamedQuery like: <sql><![CDATA[SELECT $select FROM AppleTree join Apple on (AppleTree.id = Apple.treeId) where (Apple.color = 'red') ]]></sql> I get a correct sql response, but cayenne fails to build up the entities out of it: org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT Jan 19 2007 05:26:38] Remote error. URL - http://localhost:8181/angel-server- cayenne; CAUSE - [v.3.0-SNAPSHOT Jan 19 2007 05:26:38] [v.3.0- SNAPSHOT Jan 19 2007 05:26:38] Exception processing message org.apache.cayenne.remote.QueryMessage. Root cause: [v.3.0-SNAPSHOT Jan 19 2007 05:26:38] Null value for 'id'. when I try with Expression the expression is ignored and makes no difference, (is there an automatic join clause created ?): SelectQuery sq = new SelectQuery(AppleTree.class, ExpressionFactory.matchExp(Apple.COLOR, "red") ); Does someone have any hints ? Marcin On 01/03/2007, at 12:48 AM, Mike Kienenberger wrote: > You may be right. I vaguely recall now that this only works for > to-one relations. For to-many relations, I can't remember how I > handled this. > > > On 2/28/07, Marcin Skladaniec <swansonlinda@example.org> wrote: >> Hi >> Mike, the ExpressionFactory.noMatchExp(AppleTree.APPLE_PROPERTY, >> null) does not work. I tried. I recollect I used Expression which >> aimed other way around (from many to one, example : >> ExpressionFactory.noMatchExp(Apple.APPLE_TREE_PROPERTY, null) ). >> Marcin >> >> >> On 28/02/2007, at 11:11 AM, Mike Kienenberger wrote: >> >> > ExpressionFactory.noMatchExp(AppleTree.APPLE_PROPERTY, null) >> > >> > Be aware that you cannot safely combine this expression with other >> > expressions due to outer join issues, unless you're using the outer >> > join patch. I think there was another null-related fix mixed into >> > that patch. >> > >> > On 2/27/07, Marcin Skladaniec <swansonlinda@example.org> wrote: >> >> Hi >> >> >> >> I have a simple one-to-many relationship : AppleTree - Apple. I'm >> >> doing a query : >> >> new SelectQuery(AppleTree.class, expression) >> >> how should the expression look like to return the trees with >> apples ? >> >> expression = ExpressionFactory.noMatchExp(AppleTree.APPLES, null) >> >> does not seem to work, neither does >> >> expression = ExpressionFactory.noMatchExp("applesArray", null) >> >> >> >> Regards >> >> Marcin >> >> >> >> Marcin >> >> >> >> Marcin From swansonlinda@example.org Sat Mar 03 15:22:35 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 49557 invoked from network); 3 Mar 2007 15:22:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Mar 2007 15:22:34 -0000 Received: (qmail 31126 invoked by uid 500); 3 Mar 2007 15:22:43 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 31117 invoked by uid 500); 3 Mar 2007 15:22:42 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 31105 invoked by uid 99); 3 Mar 2007 15:22:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2007 07:22:42 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of swansonlinda@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO wr-out-0506.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2007 07:22:31 -0800 Received: by wr-out-0506.google.com with SMTP id 69so1719139wra for <swansonlinda@example.org>; Sat, 03 Mar 2007 07:22:10 -0800 (PST) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=FgYfrY+pJfAoj/PdxYD0izkfaRhFfhXuAX4TppFdGCmwVSVQPFBRHPi5kAkMRf15QAh9VbbvEHFrLpSljrzXMWoXPv2eka5UX/DXtkspO882Iqm24WXRwvwScxyAA3qD0eYN917pWY3mRdoAqtPA4rIA23lzu1l3RbBIhH+Y3DU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=fYmGcU8mj/ASTQbHQ8JM6uAwKCW5AQT51ySyrgMvBdvF2oHoVskEj63EoLsPOmA6JhNagedAqWSjTGG94miAZ6XkLYCp/OxBZib5f88wtQK1qDEc0Jg4Os+MP7mhjfQnfDLxkpoUvZrEHVLMXLdxtZgJlctCIwlia8FMPaUrZ6Q= Received: by 83.161.120.155 with SMTP id q1mr680434wab.1172935329354; Sat, 03 Mar 2007 07:22:09 -0800 (PST) Received: by 83.161.120.155 with HTTP; Sat, 3 Mar 2007 07:22:09 -0800 (PST) Message-ID: <swansonlinda@example.org> Date: Sat, 3 Mar 2007 10:22:09 -0500 From: "Mike Kienenberger" <swansonlinda@example.org> To: swansonlinda@example.org Subject: Re: expression to find out null relationship In-Reply-To: <swansonlinda@example.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <swansonlinda@example.org> <swansonlinda@example.org> <swansonlinda@example.org> <swansonlinda@example.org> <swansonlinda@example.org> X-Virus-Checked: Checked by ClamAV on apache.org For your first case, be sure that $select also returns a field named id. For your second case, you have rooted your query on AppleTree, but you are basing your query as if you were rooted on Apple. Provide a path from AppleTree to Apple. SelectQuery sq = new SelectQuery(AppleTree.class, ExpressionFactory.matchExp(AppleTree.APPLES + "." + Apple.COLOR, "red") ); On 3/3/07, Marcin Skladaniec <swansonlinda@example.org> wrote: > Hi > I'm still struggling trying to fetch only AppleTrees with Apples > which are red. > > Apple -AppleTree is a simple many-to-one relationship. I dont want to > fault every appleTree and apple, I want to use either NamedQuery or > Expression. > When I attempt with NamedQuery like: > <sql><![CDATA[SELECT $select FROM AppleTree join Apple on > (AppleTree.id = Apple.treeId) where (Apple.color = 'red') ]]></sql> > I get a correct sql response, but cayenne fails to build up the > entities out of it: > org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT Jan 19 > 2007 05:26:38] Remote error. URL - http://localhost:8181/angel-server- > cayenne; CAUSE - [v.3.0-SNAPSHOT Jan 19 2007 05:26:38] [v.3.0- > SNAPSHOT Jan 19 2007 05:26:38] Exception processing message > org.apache.cayenne.remote.QueryMessage. Root cause: [v.3.0-SNAPSHOT > Jan 19 2007 05:26:38] Null value for 'id'. > > when I try with Expression the expression is ignored and makes no > difference, (is there an automatic join clause created ?): > SelectQuery sq = new SelectQuery(AppleTree.class, > ExpressionFactory.matchExp(Apple.COLOR, "red") ); > > Does someone have any hints ? > Marcin > > > > On 01/03/2007, at 12:48 AM, Mike Kienenberger wrote: > > > You may be right. I vaguely recall now that this only works for > > to-one relations. For to-many relations, I can't remember how I > > handled this. > > > > > > On 2/28/07, Marcin Skladaniec <swansonlinda@example.org> wrote: > >> Hi > >> Mike, the ExpressionFactory.noMatchExp(AppleTree.APPLE_PROPERTY, > >> null) does not work. I tried. I recollect I used Expression which > >> aimed other way around (from many to one, example : > >> ExpressionFactory.noMatchExp(Apple.APPLE_TREE_PROPERTY, null) ). > >> Marcin > >> > >> > >> On 28/02/2007, at 11:11 AM, Mike Kienenberger wrote: > >> > >> > ExpressionFactory.noMatchExp(AppleTree.APPLE_PROPERTY, null) > >> > > >> > Be aware that you cannot safely combine this expression with other > >> > expressions due to outer join issues, unless you're using the outer > >> > join patch. I think there was another null-related fix mixed into > >> > that patch. > >> > > >> > On 2/27/07, Marcin Skladaniec <swansonlinda@example.org> wrote: > >> >> Hi > >> >> > >> >> I have a simple one-to-many relationship : AppleTree - Apple. I'm > >> >> doing a query : > >> >> new SelectQuery(AppleTree.class, expression) > >> >> how should the expression look like to return the trees with > >> apples ? > >> >> expression = ExpressionFactory.noMatchExp(AppleTree.APPLES, null) > >> >> does not seem to work, neither does > >> >> expression = ExpressionFactory.noMatchExp("applesArray", null) > >> >> > >> >> Regards > >> >> Marcin > >> >> > >> > >> Marcin > >> > >> > >> > >> > > Marcin > > > > From swansonlinda@example.org Sat Mar 03 22:37:06 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 51313 invoked from network); 3 Mar 2007 22:37:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 3 Mar 2007 22:37:06 -0000 Received: (qmail 26784 invoked by uid 500); 3 Mar 2007 22:37:14 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 26771 invoked by uid 500); 3 Mar 2007 22:37:14 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 26761 invoked by uid 99); 3 Mar 2007 22:37:14 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2007 14:37:14 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of swansonlinda@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO fish.ish.com.au) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 03 Mar 2007 14:37:03 -0800 Received: from [83.161.120.155] (helo=[83.161.120.155]) by fish.ish.com.au with esmtp (Exim 4.43) id 1HNcqD-0005Id-4M for swansonlinda@example.org; Sun, 04 Mar 2007 09:36:45 +1100 Mime-Version: 1.0 (Apple Message framework v752.2) In-Reply-To: <swansonlinda@example.org> References: <swansonlinda@example.org> <swansonlinda@example.org> <swansonlinda@example.org> <swansonlinda@example.org> <swansonlinda@example.org> <swansonlinda@example.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <swansonlinda@example.org> Content-Transfer-Encoding: 7bit From: Marcin Skladaniec <swansonlinda@example.org> Subject: Re: expression to find out null relationship Date: Sun, 4 Mar 2007 08:36:30 +1000 To: swansonlinda@example.org X-Mailer: Apple Mail (2.752.2) X-Spam-Score: -1.4 (-) X-Spam-Report: -1.4 ALL_TRUSTED Passed through trusted hosts only via SMTP X-Virus-Checked: Checked by ClamAV on apache.org On 04/03/2007, at 1:22 AM, Mike Kienenberger wrote: > For your first case, be sure that $select also returns a field > named id. It does return id. The response contains the joined tables AppleTree and Apple, and $select has only the AppleTree fields listed: AppleTree.id, AppleTree.height etc. Still the object is not faulted and the exception is produced. > > For your second case, you have rooted your query on AppleTree, but you > are basing your query as if you were rooted on Apple. Provide a path > from AppleTree to Apple. > > SelectQuery sq = new SelectQuery(AppleTree.class, > ExpressionFactory.matchExp(AppleTree.APPLES + "." + Apple.COLOR, > "red") ); Yes, I'm doing that, I wrote it not correctly in the message only, as the real life example is far more complex than the Apple/AppleTree model. Anyway the Expression does not affect the result. Regards Marcin > > On 3/3/07, Marcin Skladaniec <swansonlinda@example.org> wrote: >> Hi >> I'm still struggling trying to fetch only AppleTrees with Apples >> which are red. >> >> Apple -AppleTree is a simple many-to-one relationship. I dont want to >> fault every appleTree and apple, I want to use either NamedQuery or >> Expression. >> When I attempt with NamedQuery like: >> <sql><![CDATA[SELECT $select FROM AppleTree join Apple on >> (AppleTree.id = Apple.treeId) where (Apple.color = 'red') ]]></sql> >> I get a correct sql response, but cayenne fails to build up the >> entities out of it: >> org.apache.cayenne.CayenneRuntimeException: [v.3.0-SNAPSHOT Jan 19 >> 2007 05:26:38] Remote error. URL - http://localhost:8181/angel- >> server- >> cayenne; CAUSE - [v.3.0-SNAPSHOT Jan 19 2007 05:26:38] [v.3.0- >> SNAPSHOT Jan 19 2007 05:26:38] Exception processing message >> org.apache.cayenne.remote.QueryMessage. Root cause: [v.3.0-SNAPSHOT >> Jan 19 2007 05:26:38] Null value for 'id'. >> >> when I try with Expression the expression is ignored and makes no >> difference, (is there an automatic join clause created ?): >> SelectQuery sq = new SelectQuery(AppleTree.class, >> ExpressionFactory.matchExp(Apple.COLOR, "red") ); >> >> Does someone have any hints ? >> Marcin >> >> >> >> On 01/03/2007, at 12:48 AM, Mike Kienenberger wrote: >> >> > You may be right. I vaguely recall now that this only works for >> > to-one relations. For to-many relations, I can't remember how I >> > handled this. >> > >> > >> > On 2/28/07, Marcin Skladaniec <swansonlinda@example.org> wrote: >> >> Hi >> >> Mike, the ExpressionFactory.noMatchExp(AppleTree.APPLE_PROPERTY, >> >> null) does not work. I tried. I recollect I used Expression which >> >> aimed other way around (from many to one, example : >> >> ExpressionFactory.noMatchExp(Apple.APPLE_TREE_PROPERTY, null) ). >> >> Marcin >> >> >> >> >> >> On 28/02/2007, at 11:11 AM, Mike Kienenberger wrote: >> >> >> >> > ExpressionFactory.noMatchExp(AppleTree.APPLE_PROPERTY, null) >> >> > >> >> > Be aware that you cannot safely combine this expression with >> other >> >> > expressions due to outer join issues, unless you're using the >> outer >> >> > join patch. I think there was another null-related fix >> mixed into >> >> > that patch. >> >> > >> >> > On 2/27/07, Marcin Skladaniec <swansonlinda@example.org> wrote: >> >> >> Hi >> >> >> >> >> >> I have a simple one-to-many relationship : AppleTree - >> Apple. I'm >> >> >> doing a query : >> >> >> new SelectQuery(AppleTree.class, expression) >> >> >> how should the expression look like to return the trees with >> >> apples ? >> >> >> expression = ExpressionFactory.noMatchExp(AppleTree.APPLES, >> null) >> >> >> does not seem to work, neither does >> >> >> expression = ExpressionFactory.noMatchExp("applesArray", null) >> >> >> >> >> >> Regards >> >> >> Marcin >> >> >> >> >> >> >> Marcin >> >> >> >> >> >> >> >> >> >> Marcin >> >> >> >> Marcin From swansonlinda@example.org Sun Mar 04 18:10:34 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 96357 invoked from network); 4 Mar 2007 18:10:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 4 Mar 2007 18:10:34 -0000 Received: (qmail 9402 invoked by uid 500); 4 Mar 2007 18:10:42 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 9380 invoked by uid 500); 4 Mar 2007 18:10:42 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 9371 invoked by uid 99); 4 Mar 2007 18:10:42 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2007 10:10:42 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO outbound2.messagestream.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2007 10:10:30 -0800 Received: from birmingham.claney.com ([83.161.120.155]) by outbound2.messagestream.com with the MessageStream Outbound Distribution System; Sun, 04 Mar 2007 18:10:15 +0000 Received: from [83.161.120.155] (cpc2-staf3-0-0-cust72.sol2.cable.ntl.com [83.161.120.155]) by birmingham.claney.com (Postfix) with ESMTP id 99C95268F5D3 for <swansonlinda@example.org>; Sun, 4 Mar 2007 18:10:04 +0000 (GMT) Mime-Version: 1.0 (Apple Message framework v752.2) References: <swansonlinda@example.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <swansonlinda@example.org> Content-Transfer-Encoding: 7bit From: Simon <swansonlinda@example.org> Subject: Importing an EOModel with single table inheritance Date: Sun, 4 Mar 2007 18:10:04 +0000 To: swansonlinda@example.org X-Mailer: Apple Mail (2.752.2) X-Virus-Checked: Checked by ClamAV on apache.org Hi - I'm trying to import an EOModel with cayenne Modeler and i'm getting the exception pasted below. ABSTRACT_FOP is a table that has a super entity and 2 sub entities mapped to it. Is it not possible to import an EOModel that has single-table inheritance ? Thanks, Simon CayenneModeler Info Version: 2.0.2 Build Date: January 14 2007 Exception: ================================= org.apache.cayenne.CayenneRuntimeException: [v.2.0.2 January 14 2007] One and only one entity should be mapped to ABSTRACT_FOP. Instead found : swansonlinda@example.org (EOModelProcessor.java:661) at org.apache.cayenne.wocompat.EOModelProcessor.loadEOModel (EOModelProcessor.java:171) at org.apache.cayenne.wocompat.EOModelProcessor.loadEOModel (EOModelProcessor.java:117) at org.apache.cayenne.modeler.action.ImportEOModelAction.importEOModel (ImportEOModelAction.java:125) at org.apache.cayenne.modeler.action.ImportEOModelAction.performAction (ImportEOModelAction.java:89) at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed (CayenneAction.java:163) at javax.swing.AbstractButton.fireActionPerformed (AbstractButton.java:1882) at javax.swing.AbstractButton$Handler.actionPerformed (AbstractButton.java:2202) at javax.swing.DefaultButtonModel.fireActionPerformed (DefaultButtonModel.java:420) at javax.swing.DefaultButtonModel.setPressed(DefaultButtonModel.java: 258) at javax.swing.AbstractButton.doClick(AbstractButton.java:334) at apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:104) at java.awt.MenuItem.processActionEvent(MenuItem.java:597) at java.awt.MenuItem.processEvent(MenuItem.java:556) at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:298) at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:286) at java.awt.EventQueue.dispatchEvent(EventQueue.java:466) at java.awt.EventDispatchThread.pumpOneEventForHierarchy (EventDispatchThread.java:269) at java.awt.EventDispatchThread.pumpEventsForHierarchy (EventDispatchThread.java:190) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java: 184) at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java: 176) at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) From swansonlinda@example.org Mon Mar 05 07:58:04 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 90751 invoked from network); 5 Mar 2007 07:58:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Mar 2007 07:58:04 -0000 Received: (qmail 65075 invoked by uid 500); 5 Mar 2007 07:58:13 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 64833 invoked by uid 500); 5 Mar 2007 07:58:12 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 64824 invoked by uid 99); 5 Mar 2007 07:58:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2007 23:58:12 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO mout0.freenet.de) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Mar 2007 23:58:01 -0800 Received: from [83.161.120.155] (helo=mx3.freenet.de) by mout0.freenet.de with esmtpa (Exim 4.67) (envelope-from <swansonlinda@example.org>) id 1HO84h-0001V2-OR for swansonlinda@example.org; Mon, 05 Mar 2007 08:57:39 +0100 Received: from fnhh-svmexfe001.freenet-ag.de ([83.161.120.155]:10250) by mx3.freenet.de with esmtp (port 25) (Exim 4.67 #1) id 1HO84h-0000VK-Mz for swansonlinda@example.org; Mon, 05 Mar 2007 08:57:39 +0100 Received: from FNHH-SVMEXDB002.Freenet-AG.de ([83.161.120.155]) by FNHH-SVMEXFE001.Freenet-AG.de with Microsoft SMTPSVC2209615571); Mon, 5 Mar 2007 08:57:50 +0100 x-mimeole: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Subject: AW: Java5: the expression of type list needs unchecked conversion Date: Mon, 5 Mar 2007 08:57:50 +0100 Message-ID: <swansonlinda@example.org> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: Java5: the expression of type list needs unchecked conversion Thread-Index: AcddBHjzh702Z6IFSgqyd67CIVBDaQB9xgcw From: =?iso-8859-1?Q?Peter_Schr=F6der?= <swansonlinda@example.org> To: <swansonlinda@example.org> X-OriginalArrivalTime: 05 Mar 2007 07:57:50.0902 (UTC) FILETIME=[F8E6B560:01C75EFB] X-Virus-Checked: Checked by ClamAV on apache.org you may provide the annotation @SuppressWarnings("unchecked")=20 this will probably remove the warning in your IDE. the warning occurs, because of the performQuery returns just a = List-Object wich is not typesafe. -----Urspr=FCngliche Nachricht----- Von: news [mailto:swansonlinda@example.org] Im Auftrag von Arturo Perez Gesendet: Freitag, 2. M=E4rz 2007 20:53 An: swansonlinda@example.org Betreff: Java5: the expression of type list needs unchecked conversion Hi all, I'm using Eclipse and Java6 now. Whenever I do anything with performQuery() the IDE complains that the expression of type list needs unchecked conversion. I'm sure I could turn that off in the IDE but is there a way to write it so that the warning goes away? I tried casting. -arturo From swansonlinda@example.org Mon Mar 05 11:15:47 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 59439 invoked from network); 5 Mar 2007 11:15:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Mar 2007 11:15:45 -0000 Received: (qmail 7546 invoked by uid 500); 5 Mar 2007 11:15:52 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 7536 invoked by uid 500); 5 Mar 2007 11:15:52 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 7527 invoked by uid 99); 5 Mar 2007 11:15:52 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 03:15:52 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO byaroza.objectstyle.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 05 Mar 2007 03:15:43 -0800 Received: (qmail 11379 invoked from network); 5 Mar 2007 11:15:22 -0000 Received: from unknown (HELO ?vBIPv888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4:1?) (83.161.120.155) by localhost with SMTP; 5 Mar 2007 11:15:22 -0000 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <swansonlinda@example.org> References: <swansonlinda@example.org> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <swansonlinda@example.org> Content-Transfer-Encoding: quoted-printable From: Andrus Adamchik <swansonlinda@example.org> Subject: Re: AW: Java5: the expression of type list needs unchecked conversion Date: Mon, 5 Mar 2007 13:15:20 +0200 To: swansonlinda@example.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Squashing consequences of one Java 5 feature with another... nice :-) I wonder how we can address this at the framework level, without =20 having to support two separate jdk-specific builds of Cayenne? Wonder =20= how other frameworks handle that (I suspect they don't)? Andrus On Mar 5, 2007, at 9:57 AM, Peter Schr=F6der wrote: > you may provide the annotation @SuppressWarnings("unchecked") > this will probably remove the warning in your IDE. > > the warning occurs, because of the performQuery returns just a List-=20= > Object wich is not typesafe. > > -----Urspr=FCngliche Nachricht----- > Von: news [mailto:swansonlinda@example.org] Im Auftrag von Arturo Perez > Gesendet: Freitag, 2. M=E4rz 2007 20:53 > An: swansonlinda@example.org > Betreff: Java5: the expression of type list needs unchecked conversion > > Hi all, > > I'm using Eclipse and Java6 now. Whenever I do anything with > performQuery() the IDE complains that > the expression of type list needs unchecked conversion. > I'm sure I could turn that off in the IDE but is there a way to > write it so that the warning goes away? I tried casting. > > -arturo > > From swansonlinda@example.org Mon Mar 05 11:15:57 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 59562 invoked from network); 5 Mar 2007 11:15:57 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Mar 2007 11:15:57 -0000 Received: (qmail 7921 invoked by uid 500); 5 Mar 2007 11:16:05 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 7907 invoked by uid 500); 5 Mar 2007 11:16:05 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 7898 invoked by uid 99); 5 Mar 2007 11:16:04 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 03:16:04 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO byaroza.objectstyle.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 05 Mar 2007 03:15:55 -0800 Received: (qmail 11383 invoked from network); 5 Mar 2007 11:15:34 -0000 Received: from unknown (HELO ?vBIPv888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4:1?) (83.161.120.155) by localhost with SMTP; 5 Mar 2007 11:15:34 -0000 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <swansonlinda@example.org> References: <swansonlinda@example.org> <swansonlinda@example.org> <swansonlinda@example.org> <swansonlinda@example.org> <swansonlinda@example.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <swansonlinda@example.org> Content-Transfer-Encoding: 7bit From: Andrus Adamchik <swansonlinda@example.org> Subject: Re: expression to find out null relationship Date: Mon, 5 Mar 2007 13:15:33 +0200 To: swansonlinda@example.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org On Mar 3, 2007, at 7:47 AM, Marcin Skladaniec wrote: > - [v.3.0-SNAPSHOT Jan 19 2007 05:26:38] [v.3.0-SNAPSHOT Jan 19 2007 > 05:26:38] Exception processing message > org.apache.cayenne.remote.QueryMessage. Root cause: [v.3.0-SNAPSHOT > Jan 19 2007 05:26:38] Null value for 'id'. Marcin, can you print the actual DataRow before converting it to object - this may give you hints as to why the exception is thrown. Mike already mentioned that - the column naming in the response may be the key. Andrus From swansonlinda@example.org Mon Mar 05 11:16:02 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 59581 invoked from network); 5 Mar 2007 11:16:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Mar 2007 11:16:02 -0000 Received: (qmail 8262 invoked by uid 500); 5 Mar 2007 11:16:10 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 8246 invoked by uid 500); 5 Mar 2007 11:16:10 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 8234 invoked by uid 99); 5 Mar 2007 11:16:09 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 03:16:09 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO byaroza.objectstyle.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 05 Mar 2007 03:16:00 -0800 Received: (qmail 11387 invoked from network); 5 Mar 2007 11:15:39 -0000 Received: from unknown (HELO ?vBIPv888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4:1?) (83.161.120.155) by localhost with SMTP; 5 Mar 2007 11:15:39 -0000 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <swansonlinda@example.org> References: <swansonlinda@example.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <swansonlinda@example.org> Content-Transfer-Encoding: 7bit From: Andrus Adamchik <swansonlinda@example.org> Subject: Re: UseSharedCache programatic override failure Date: Mon, 5 Mar 2007 13:15:38 +0200 To: swansonlinda@example.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Hi Bob, From a quick glance looks like a bug. Could you please open a bug report: http://issues.apache.org/cayenne/ Andrus On Mar 3, 2007, at 12:03 AM, bob wrote: > Hi all > > Using Cayenne 1.2.2, jdk5. > > In the modeler under cache configuration the "use shared cache" is > disabled. This value I want to override programatically for example: > > boolean useSharedCache = true; > DataContext context = DataContext.createDataContext(useSharedCache); > DataObjectUtils.objectForPK(context, Employee.class, 200); > > This throws a nullpointer. Stack trace below. > > Is this valid use of the API? > > If I enable the "use shared cache" in the modeler this works fine, > so its not a big issue. > > > Stacktrace: > > Exception in thread "main" java.lang.NullPointerException > org.objectstyle.cayenne.access.DataDomainQueryAction.interceptOIDQuery > (DataDomainQueryAction.java:166) > org.objectstyle.cayenne.access.DataDomainQueryAction.execute > (DataDomainQueryAction.java:143) > org.objectstyle.cayenne.access.DataDomain.onQuery(DataDomain.java:766) > org.objectstyle.cayenne.util.ObjectContextQueryAction.runQuery > (ObjectContextQueryAction.java:253) > org.objectstyle.cayenne.access.DataContextQueryAction.execute > (DataContextQueryAction.java:90) > org.objectstyle.cayenne.access.DataContext.onQuery(DataContext.java: > 1423) > org.objectstyle.cayenne.access.DataContext.performQuery > (DataContext.java:1412) > org.objectstyle.cayenne.DataObjectUtils.objectForQuery > (DataObjectUtils.java:290) > org.objectstyle.cayenne.DataObjectUtils.objectForPK > (DataObjectUtils.java:276) > org.objectstyle.cayenne.DataObjectUtils.objectForPK > (DataObjectUtils.java:167) > test.CacheOverride.main(CacheOverride.java:20) > > > regards > > bob From swansonlinda@example.org Mon Mar 05 11:16:08 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 59608 invoked from network); 5 Mar 2007 11:16:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Mar 2007 11:16:08 -0000 Received: (qmail 8546 invoked by uid 500); 5 Mar 2007 11:16:15 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 8535 invoked by uid 500); 5 Mar 2007 11:16:15 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 8525 invoked by uid 99); 5 Mar 2007 11:16:15 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 03:16:15 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO byaroza.objectstyle.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 05 Mar 2007 03:16:06 -0800 Received: (qmail 11389 invoked from network); 5 Mar 2007 11:15:44 -0000 Received: from unknown (HELO ?vBIPv888a:dbb7:2d49:b3f6:8605:bf4e:caed:e5a4:1?) (83.161.120.155) by localhost with SMTP; 5 Mar 2007 11:15:44 -0000 Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <swansonlinda@example.org> References: <swansonlinda@example.org> <swansonlinda@example.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <swansonlinda@example.org> Content-Transfer-Encoding: 7bit From: Andrus Adamchik <swansonlinda@example.org> Subject: Re: Importing an EOModel with single table inheritance Date: Mon, 5 Mar 2007 13:15:43 +0200 To: swansonlinda@example.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Hi Simon, Looking at the code, it fails not because of single-table inheritance, but still I think this is a bug in Cayenne. Could you please open a bug report and attach your EOModel to it - I'd like to investigate more. http://issues.apache.org/cayenne/ Thanks Andrus On Mar 4, 2007, at 8:10 PM, Simon wrote: > Hi - > > I'm trying to import an EOModel with cayenne Modeler and i'm > getting the exception pasted below. ABSTRACT_FOP is a table that > has a super entity and 2 sub entities mapped to it. > > Is it not possible to import an EOModel that has single-table > inheritance ? > > Thanks, Simon > > > CayenneModeler Info > Version: 2.0.2 > Build Date: January 14 2007 > Exception: > ================================= > org.apache.cayenne.CayenneRuntimeException: [v.2.0.2 January 14 > 2007] One and only one entity should be mapped to ABSTRACT_FOP. > Instead found : 3 > at > org.apache.cayenne.wocompat.EOModelProcessor.makeFlatRelationships > (EOModelProcessor.java:661) > at org.apache.cayenne.wocompat.EOModelProcessor.loadEOModel > (EOModelProcessor.java:171) > at org.apache.cayenne.wocompat.EOModelProcessor.loadEOModel > (EOModelProcessor.java:117) > at > org.apache.cayenne.modeler.action.ImportEOModelAction.importEOModel > (ImportEOModelAction.java:125) > at > org.apache.cayenne.modeler.action.ImportEOModelAction.performAction > (ImportEOModelAction.java:89) > at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed > (CayenneAction.java:163) > at javax.swing.AbstractButton.fireActionPerformed > (AbstractButton.java:1882) > at javax.swing.AbstractButton$Handler.actionPerformed > (AbstractButton.java:2202) > at javax.swing.DefaultButtonModel.fireActionPerformed > (DefaultButtonModel.java:420) > at javax.swing.DefaultButtonModel.setPressed > (DefaultButtonModel.java:258) > at javax.swing.AbstractButton.doClick(AbstractButton.java:334) > at apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:104) > at java.awt.MenuItem.processActionEvent(MenuItem.java:597) > at java.awt.MenuItem.processEvent(MenuItem.java:556) > at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:298) > at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:286) > at java.awt.EventQueue.dispatchEvent(EventQueue.java:466) > at java.awt.EventDispatchThread.pumpOneEventForHierarchy > (EventDispatchThread.java:269) > at java.awt.EventDispatchThread.pumpEventsForHierarchy > (EventDispatchThread.java:190) > at java.awt.EventDispatchThread.pumpEvents > (EventDispatchThread.java:184) > at java.awt.EventDispatchThread.pumpEvents > (EventDispatchThread.java:176) > at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) > > > > From swansonlinda@example.org Mon Mar 05 12:10:44 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 90157 invoked from network); 5 Mar 2007 12:10:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Mar 2007 12:10:44 -0000 Received: (qmail 4640 invoked by uid 500); 5 Mar 2007 12:10:52 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 4622 invoked by uid 500); 5 Mar 2007 12:10:51 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 4613 invoked by uid 99); 5 Mar 2007 12:10:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 04:10:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO outbound2.messagestream.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 04:10:41 -0800 Received: from birmingham.claney.com ([83.161.120.155]) by outbound2.messagestream.com with the MessageStream Outbound Distribution System; Mon, 05 Mar 2007 12:10:26 +0000 Received: from [83.161.120.155] (unknown [83.161.120.155]) by birmingham.claney.com (Postfix) with ESMTP id 8296A26950B4 for <swansonlinda@example.org>; Mon, 5 Mar 2007 12:10:18 +0000 (GMT) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <swansonlinda@example.org> References: <swansonlinda@example.org> <swansonlinda@example.org> <swansonlinda@example.org> Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Message-Id: <swansonlinda@example.org> Content-Transfer-Encoding: 7bit From: Simon McLean <swansonlinda@example.org> Subject: Re: Importing an EOModel with single table inheritance Date: Mon, 5 Mar 2007 12:10:16 +0000 To: swansonlinda@example.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Hi Andrus - It's on there: CAY-764 Simon On 5 Mar 2007, at 11:15, Andrus Adamchik wrote: > Hi Simon, > > Looking at the code, it fails not because of single-table > inheritance, but still I think this is a bug in Cayenne. Could you > please open a bug report and attach your EOModel to it - I'd like > to investigate more. > > http://issues.apache.org/cayenne/ > > Thanks > Andrus > > > On Mar 4, 2007, at 8:10 PM, Simon wrote: > >> Hi - >> >> I'm trying to import an EOModel with cayenne Modeler and i'm >> getting the exception pasted below. ABSTRACT_FOP is a table that >> has a super entity and 2 sub entities mapped to it. >> >> Is it not possible to import an EOModel that has single-table >> inheritance ? >> >> Thanks, Simon >> >> >> CayenneModeler Info >> Version: 2.0.2 >> Build Date: January 14 2007 >> Exception: >> ================================= >> org.apache.cayenne.CayenneRuntimeException: [v.2.0.2 January 14 >> 2007] One and only one entity should be mapped to ABSTRACT_FOP. >> Instead found : 3 >> at >> org.apache.cayenne.wocompat.EOModelProcessor.makeFlatRelationships >> (EOModelProcessor.java:661) >> at org.apache.cayenne.wocompat.EOModelProcessor.loadEOModel >> (EOModelProcessor.java:171) >> at org.apache.cayenne.wocompat.EOModelProcessor.loadEOModel >> (EOModelProcessor.java:117) >> at >> org.apache.cayenne.modeler.action.ImportEOModelAction.importEOModel >> (ImportEOModelAction.java:125) >> at >> org.apache.cayenne.modeler.action.ImportEOModelAction.performAction >> (ImportEOModelAction.java:89) >> at org.apache.cayenne.modeler.util.CayenneAction.actionPerformed >> (CayenneAction.java:163) >> at javax.swing.AbstractButton.fireActionPerformed >> (AbstractButton.java:1882) >> at javax.swing.AbstractButton$Handler.actionPerformed >> (AbstractButton.java:2202) >> at javax.swing.DefaultButtonModel.fireActionPerformed >> (DefaultButtonModel.java:420) >> at javax.swing.DefaultButtonModel.setPressed >> (DefaultButtonModel.java:258) >> at javax.swing.AbstractButton.doClick(AbstractButton.java:334) >> at apple.laf.ScreenMenuItem.actionPerformed(ScreenMenuItem.java:104) >> at java.awt.MenuItem.processActionEvent(MenuItem.java:597) >> at java.awt.MenuItem.processEvent(MenuItem.java:556) >> at java.awt.MenuComponent.dispatchEventImpl(MenuComponent.java:298) >> at java.awt.MenuComponent.dispatchEvent(MenuComponent.java:286) >> at java.awt.EventQueue.dispatchEvent(EventQueue.java:466) >> at java.awt.EventDispatchThread.pumpOneEventForHierarchy >> (EventDispatchThread.java:269) >> at java.awt.EventDispatchThread.pumpEventsForHierarchy >> (EventDispatchThread.java:190) >> at java.awt.EventDispatchThread.pumpEvents >> (EventDispatchThread.java:184) >> at java.awt.EventDispatchThread.pumpEvents >> (EventDispatchThread.java:176) >> at java.awt.EventDispatchThread.run(EventDispatchThread.java:110) >> >> >> >> > > > From swansonlinda@example.org Mon Mar 05 18:20:09 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 23664 invoked from network); 5 Mar 2007 18:20:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Mar 2007 18:20:09 -0000 Received: (qmail 94970 invoked by uid 500); 5 Mar 2007 18:20:16 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 94941 invoked by uid 500); 5 Mar 2007 18:20:16 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 94932 invoked by uid 99); 5 Mar 2007 18:20:16 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 10:20:16 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [83.161.120.155] (HELO spaceymail-a2.g.dreamhost.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 10:20:03 -0800 Received: from [83.161.120.155] (cpe-76-167-174-30.socal.res.rr.com [83.161.120.155]) by spaceymail-a2.g.dreamhost.com (Postfix) with ESMTP id A1D23106153 for <swansonlinda@example.org>; Mon, 5 Mar 2007 10:19:12 -0800 (PST) Mime-Version: 1.0 (Apple Message framework v752.3) In-Reply-To: <swansonlinda@example.org> References: <swansonlinda@example.org> <swansonlinda@example.org> Content-Type: text/plain; charset=ISO-8859-1; delsp=yes; format=flowed Message-Id: <swansonlinda@example.org> Content-Transfer-Encoding: quoted-printable From: Dain Sundstrom <swansonlinda@example.org> Subject: Re: AW: Java5: the expression of type list needs unchecked conversion Date: Mon, 5 Mar 2007 10:18:42 -0800 To: swansonlinda@example.org X-Mailer: Apple Mail (2.752.3) X-Virus-Checked: Checked by ClamAV on apache.org Ignore the warnings :) In intellij you can turn off the warnings in the "errors" preferences =20= pane. There are also compiler options to make the complier not =20 whine, but I don't know what the options are. -dain On Mar 5, 2007, at 3:15 AM, Andrus Adamchik wrote: > Squashing consequences of one Java 5 feature with another... nice :-) > > I wonder how we can address this at the framework level, without =20 > having to support two separate jdk-specific builds of Cayenne? =20 > Wonder how other frameworks handle that (I suspect they don't)? > > Andrus > > > > On Mar 5, 2007, at 9:57 AM, Peter Schr=F6der wrote: > >> you may provide the annotation @SuppressWarnings("unchecked") >> this will probably remove the warning in your IDE. >> >> the warning occurs, because of the performQuery returns just a =20 >> List-Object wich is not typesafe. >> >> -----Urspr=FCngliche Nachricht----- >> Von: news [mailto:swansonlinda@example.org] Im Auftrag von Arturo Perez >> Gesendet: Freitag, 2. M=E4rz 2007 20:53 >> An: swansonlinda@example.org >> Betreff: Java5: the expression of type list needs unchecked =20 >> conversion >> >> Hi all, >> >> I'm using Eclipse and Java6 now. Whenever I do anything with >> performQuery() the IDE complains that >> the expression of type list needs unchecked conversion. >> I'm sure I could turn that off in the IDE but is there a way to >> write it so that the warning goes away? I tried casting. >> >> -arturo >> >> > From swansonlinda@example.org Mon Mar 05 20:01:23 2007 Return-Path: <swansonlinda@example.org> Delivered-To: swansonlinda@example.org Received: (qmail 66997 invoked from network); 5 Mar 2007 20:01:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (83.161.120.155) by minotaur.apache.org with SMTP; 5 Mar 2007 20:01:19 -0000 Received: (qmail 84682 invoked by uid 500); 5 Mar 2007 20:01:27 -0000 Delivered-To: swansonlinda@example.org Received: (qmail 84655 invoked by uid 500); 5 Mar 2007 20:01:27 -0000 Mailing-List: contact swansonlinda@example.org; run by ezmlm Precedence: bulk List-Help: <mailto:swansonlinda@example.org> List-Unsubscribe: <mailto:swansonlinda@example.org> List-Post: <mailto:swansonlinda@example.org> List-Id: <user.cayenne.apache.org> Reply-To: swansonlinda@example.org Delivered-To: mailing list swansonlinda@example.org Received: (qmail 84479 invoked by uid 99); 5 Mar 2007 20:01:26 -0000 Received: from herse.apache.org (HELO herse.apache.org) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 12:01:26 -0800 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of swansonlinda@example.org designates 83.161.120.155 as permitted sender) Received: from [83.161.120.155] (HELO wr-out-0506.google.com) (83.161.120.155) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 05 Mar 2007 12:01:15 -0800 Received: by
{'source': 'Apache Software Foundation Public Mail Archives'}