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 04:24:19 GMT
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