openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brill Pappin" <br...@pappin.ca>
Subject RE: Direct mappings of list and map
Date Wed, 02 Apr 2008 05:21:16 GMT
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


Mime
View raw message