Return-Path: Delivered-To: apmail-openjpa-users-archive@locus.apache.org Received: (qmail 88510 invoked from network); 6 May 2008 09:10:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 6 May 2008 09:10:55 -0000 Received: (qmail 54563 invoked by uid 500); 6 May 2008 09:10:57 -0000 Delivered-To: apmail-openjpa-users-archive@openjpa.apache.org Received: (qmail 54540 invoked by uid 500); 6 May 2008 09:10:57 -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 54529 invoked by uid 99); 6 May 2008 09:10:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 May 2008 02:10:57 -0700 X-ASF-Spam-Status: No, hits=-2.2 required=10.0 tests=MIME_QP_LONG_LINE,RCVD_IN_DNSWL_MED,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [85.158.139.83] (HELO mail182.messagelabs.com) (85.158.139.83) by apache.org (qpsmtpd/0.29) with SMTP; Tue, 06 May 2008 09:10:10 +0000 X-VirusChecked: Checked X-Env-Sender: mvorburger@odyssey-group.com X-Msg-Ref: server-7.tower-182.messagelabs.com!1210065022!5794103!1 X-StarScan-Version: 5.5.12.14.2; banners=odyssey-group.com,-,- X-Originating-IP: [195.80.235.201] Received: (qmail 18588 invoked from network); 6 May 2008 09:10:23 -0000 Received: from unknown (HELO mail3.oams.com) (195.80.235.201) by server-7.tower-182.messagelabs.com with SMTP; 6 May 2008 09:10:23 -0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: quoted-printable Subject: RE: List mapping of Enumerated Types Date: Tue, 6 May 2008 11:10:16 +0200 Message-ID: <12D996978341E849B21C51CC97F4771DB418E8@mail3.oams.com> In-Reply-To: <20080502214413.996831F404A@mailgw5.z-phx-11.us.sopragroup.com> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: List mapping of Enumerated Types Thread-Index: AcisnaoT7CTuCABIRhurCqp+XRyV9gCtS3yg References: <20080502214413.996831F404A@mailgw5.z-phx-11.us.sopragroup.com> From: "Michael Vorburger" To: X-Virus-Checked: Checked by ClamAV on apache.org Amit, >=20I=20imagine=20I=20do=20not=20need=20a=20join=20table,=20but=20a=20chil= d=20table=20that=20has=20the owner=20entity=20ID,=20Enumerated >=20String=20Value=20and=20a=20Sequence,=20but=20I=20do=20not=20know=20how= =20to=20represent=20that in=20a=20@OneToMany=20annotation. This=20looks=20a=20bit=20like=20my=20"Re:=20One-Sided=20One-Many=20Mapping= ,=20but=20to different=20tables=20-=20missing=20@ElementEmbeddedMapping=20?"=20thread=20= (monologue, almost).=20=20With=20the=20latest=20trunk=20and=20upcoming=201.1=20version= =20of=20OpenJPA=20you can=20use=20@ContainerTable=20instead=20of=20@OneToMany=20it=20seems=20for= =20this=20kind=20of mapping.=20=20However,=20I=20have=20no=20idea=20if=20that=20would=20work,=20= or=20is=20even=20needed, for=20a=20Collection/List=20of=20enum. Regards, Michael =20 -----Original=20Message----- From:=20Patel=20Amit=20[mailto:apatel@us.axway.com]=20 Sent:=20vendredi,=202.=20mai=202008=2023:44 To:=20users@openjpa.apache.org Subject:=20List=20mapping=20of=20Enumerated=20Types Hello=20Jpa=20Community, I=20have=20a=20question=20on=20how=20to=20annotate=20a=20Collection=20of=20= enums=20in=20my=20Entity. I=20have=20an=20Entity=20which=20has=20a=20List=20of=20Enums: private=20List=20keyUsuage=20=3D=20new=20ArrayList()= ; Where=20KeyUsuage=20is=20the=20following=20enum: public=20enum=20KeyUsuage { =20=20=20=20digitalSignature, =20=20=20=20nonRepudiation, =20=20=20=20keyEncipherment, =20=20=20=20dataEncipherment, =20=20=20=20keyAgreement, =20=20=20=20keyCertSign, =20=20=20=20CRLSign, =20=20=20=20encipherOnly, =20=20=20=20decipherOnly, =20=20=20=20AllExtendedKeyUsage; } How=20do=20I=20go=20about=20mapping=20this=20to=20a=20table.=20=20I=20imag= ine=20I=20do=20not=20need=20a join=20table,=20but=20a=20child=20table=20that=20has=20the=20owner=20entit= y=20ID,=20Enumerated String=20Value=20and=20a=20Sequence,=20but=20I=20do=20not=20know=20how=20t= o=20represent=20that=20in a=20@OneToMany=20annotation. Has=20anyone=20done=20this=20before=20or=20know=20how=20to=20do=20it?=20=20= Is=20this=20possible=20in JPA? Thanks=20for=20the=20help. Amit ____________________________________________________________ =95=20This=20email=20and=20any=20files=20transmitted=20with=20it=20are=20C= ONFIDENTIAL=20and=20intended =20=20solely=20for=20the=20use=20of=20the=20individual=20or=20entity=20to=20= which=20they=20are=20addressed. =95=20Any=20unauthorized=20copying,=20disclosure,=20or=20distribution=20of= =20the=20material=20within =20=20this=20email=20is=20strictly=20forbidden. =95=20Any=20views=20or=20opinions=20presented=20within=20this=20e-mail=20a= re=20solely=20those=20of=20the =20=20author=20and=20do=20not=20necessarily=20represent=20those=20of=20Ody= ssey=20Financial Technologies=20SA=20unless=20otherwise=20specifically=20stated. =95=20An=20electronic=20message=20is=20not=20binding=20on=20its=20sender.=20= Any=20message=20referring=20to =20=20a=20binding=20engagement=20must=20be=20confirmed=20in=20writing=20an= d=20duly=20signed. =95=20If=20you=20have=20received=20this=20email=20in=20error,=20please=20n= otify=20the=20sender=20immediately =20=20and=20delete=20the=20original.