Return-Path: Delivered-To: apmail-openjpa-users-archive@locus.apache.org Received: (qmail 96940 invoked from network); 2 Apr 2008 14:07:32 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 2 Apr 2008 14:07:32 -0000 Received: (qmail 35639 invoked by uid 500); 2 Apr 2008 14:07:32 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 35626 invoked by uid 500); 2 Apr 2008 14:07:32 -0000 Mailing-List: contact users-help@openjpa.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@openjpa.apache.org Delivered-To: mailing list users@openjpa.apache.org Received: (qmail 35617 invoked by uid 99); 2 Apr 2008 14:07:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 07:07:32 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [64.233.170.189] (HELO rn-out-0910.google.com) (64.233.170.189) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 02 Apr 2008 14:06:50 +0000 Received: by rn-out-0910.google.com with SMTP id s28so1456484rnb.13 for ; Wed, 02 Apr 2008 07:07:00 -0700 (PDT) Received: by 10.114.13.1 with SMTP id 1mr14930331wam.4.1207145219700; Wed, 02 Apr 2008 07:06:59 -0700 (PDT) Received: by 10.114.74.15 with HTTP; Wed, 2 Apr 2008 07:06:59 -0700 (PDT) Message-ID: <145f368f0804020706o2f67d7acpf4aa45d20969a173@mail.gmail.com> Date: Wed, 2 Apr 2008 10:06:59 -0400 From: "Brill Pappin" To: users@openjpa.apache.org Subject: Re: Direct mappings of list and map In-Reply-To: <7262f25e0804012324q24249619k44cb2f39cdb02a45@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <002b01c89465$c1445db0$6900a8c0@pappin.ca> <7262f25e0804012124y61258536w27a9a371dda3aeb6@mail.gmail.com> <002c01c89481$60dfc970$6900a8c0@pappin.ca> <7262f25e0804012324q24249619k44cb2f39cdb02a45@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org Ahh, that might explain my confusion :) Any idea when the 1.x version will be deployed tot he public repo? I'm attempting to keep my build as reproducible as possible. If I have to I can deploy the 1.1 version to our local archiva. - Brill Pappin On Wed, Apr 2, 2008 at 2:24 AM, Patrick Linskey wrote: > Hi, > > OpenJPA 1.0 doesn't have support for primitives in collections and > maps. We moved that code from Kodo to OpenJPA in the 1.1.0-SNAPSHOT > line. > > -Patrick > > > > On Tue, Apr 1, 2008 at 10:21 PM, Brill Pappin wrote: > > Looks like OpenJPA 1.0 (whatever is deployed to the main maven repos). > > Not sure yet how to generate the schema :) I'm an old Hibernate user but a > > new OJPA user. > > > > What I want to know is how the annotations might be configured... Unless > > that should have worked? > > FYI the column is completely skipped during generation. > > > > - Brill Pappin > > > > > > > > -----Original Message----- > > From: Patrick Linskey [mailto:plinskey@gmail.com] > > Sent: Wednesday, April 02, 2008 12:24 AM > > To: users@openjpa.apache.org > > Subject: Re: Direct mappings of list and map > > > > Hi, > > > > What version of OpenJPA are you using? What schema is being generated? > > > > -Patrick > > > > On Tue, Apr 1, 2008 at 7:03 PM, Brill Pappin wrote: > > > I'm trying to map an entity's list and/or map directly to a table (I > > > don't want a separate entity for the entries). > > > > > > I did find the section 7.6.1. Container Table but its unclear how it > > > supposed to work, or is not working at all. > > > An example is: > > > > > > @ContainerTable > > > @ElementJoinColumn > > > private List enumCollection = new ArrayList(); > > > > > > Now what I expect is a linked table that uses all the defaults for > > > those two annotations, however openjpa is skipping the column. > > > > > > I need to do the same thing with a map. E.g Map > > > > > > Does anyone have an example of how this is supposed to work? > > > > > > - Brill Pappin > > > > > > > > > > > > > > -- > > Patrick Linskey > > 202 669 5907 > > > > > > > > -- > > > Patrick Linskey > 202 669 5907 >