You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@openjpa.apache.org by Kevin Sutter <kw...@gmail.com> on 2006/10/25 20:47:22 UTC

Support of Collections of embedded and/or value types?

Hi,
I thought we (OpenJPA) supported the mapping of Collections of embedded
types.  But, a user of our OpenJPA offering pointed out to me that they
couldn't get it to work.  I looked at the most recent documentation, and it
looks like section 1.6 of Chapter 4 has been modified (via SVN revision
452243) to not include this support.

It used to state:

Note
OpenJPA also supports arrays, java.lang.Number, java.util.Locale, all JDK
1.2 Set , List, and Map types,
collections and maps of immutable and embedded as well as entity types, and
many other mutable and immutable field types.
OpenJPA also allows you to plug in support for custom types.

But, now the Note states:
 Note

OpenJPA also supports arrays, java.lang.Number, java.util.Locale, all JDK
1.2 Set, List, and Map types, and many other mutable and immutable field
types. OpenJPA also allows you to plug in support for custom types.

 So, did we remove the support for Collections and Maps?  Was it ever
provided?  Should it have been provided?  I'm just wondering whether this is
something that we need to address via a defect/feature, or whether it was an
oversight in the code drop?  It sounds like Hibernate provides similar
support, so it would be good to "keep up".

Thanks,
Kevin

Re: Support of Collections of embedded and/or value types?

Posted by Craig L Russell <Cr...@Sun.COM>.
Hi Kevin,

Yes, Collections and Maps of value types are a feature of JDO. They  
are rumored to be "planned" for a future revision of the JPA spec.  
They certainly are popular with users.

Craig

On Oct 25, 2006, at 7:01 PM, Kevin Sutter wrote:

> On 10/25/06, Abe White <aw...@bea.com> wrote:
>>
>>
>> > I thought we (OpenJPA) supported the mapping of Collections of
>> > embedded
>> > types.
>>
>> OpenJPA never supported this.  It was accidentally left in from the
>> Kodo docs.
>>
>
> Okay, was this a JDO feature?  Does it still make sense to have  
> OpenJPA
> support Collections and Maps of these types?  Seems like a nice  
> feature that
> would keep us consistent with Hibernate.  Actually, maybe that  
> would be a
> good exercise to see how OpenJPA matches up with Hibernate.  Any  
> Hibernate
> experts out there?
>
> Kevin

Craig Russell
Architect, Sun Java Enterprise System http://java.sun.com/products/jdo
408 276-5638 mailto:Craig.Russell@sun.com
P.S. A good JDO? O, Gasp!


Re: Support of Collections of embedded and/or value types?

Posted by Kevin Sutter <kw...@gmail.com>.
On 10/25/06, Abe White <aw...@bea.com> wrote:
>
>
> > I thought we (OpenJPA) supported the mapping of Collections of
> > embedded
> > types.
>
> OpenJPA never supported this.  It was accidentally left in from the
> Kodo docs.
>

Okay, was this a JDO feature?  Does it still make sense to have OpenJPA
support Collections and Maps of these types?  Seems like a nice feature that
would keep us consistent with Hibernate.  Actually, maybe that would be a
good exercise to see how OpenJPA matches up with Hibernate.  Any Hibernate
experts out there?

Kevin

Re: Support of Collections of embedded and/or value types?

Posted by Abe White <aw...@bea.com>.
> I thought we (OpenJPA) supported the mapping of Collections of  
> embedded
> types.

OpenJPA never supported this.  It was accidentally left in from the  
Kodo docs.
_______________________________________________________________________
Notice:  This email message, together with any attachments, may contain
information  of  BEA Systems,  Inc.,  its subsidiaries  and  affiliated
entities,  that may be confidential,  proprietary,  copyrighted  and/or
legally privileged, and is intended solely for the use of the individual
or entity named in this message. If you are not the intended recipient,
and have received this message in error, please immediately return this
by email and then delete it.