openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey" <plins...@gmail.com>
Subject Re: Direct mappings of list and map
Date Wed, 02 Apr 2008 06:24:30 GMT
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 <brill@pappin.ca> 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 <brill@pappin.ca> 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<EnumType> enumCollection = new ArrayList<EnumType>();
>  >
>  >  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<String, String>
>  >
>  >  Does anyone have an example of how this is supposed to work?
>  >
>  >  - Brill Pappin
>  >
>  >
>
>
>
>  --
>  Patrick Linskey
>  202 669 5907
>
>



-- 
Patrick Linskey
202 669 5907

Mime
View raw message