openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Patrick Linskey" <plins...@gmail.com>
Subject Re: Persisting list of built-in Java types with openjpa ?
Date Tue, 06 Nov 2007 20:24:59 GMT
> Thanks Patrick. Does it mean the List<String> is stored as BLOB in the
> database? Is that what you mean by "only via serialization"?

Yes.

> What about List of user-defined types ? Does the List<MyType> supported?

If MyType is @Entity, then this will work today.

If it is @Embeddable or if you want to persist it using an
externalizer, then this does not currently work in OpenJPA, but will
soon.

-Patrick

On Nov 6, 2007 12:08 PM, Gul Onural <onural@nortel.com> wrote:
> Thanks Patrick. Does it mean the List<String> is stored as BLOB in the
> database? Is that what you mean by "only via serialization"?
>
> What about List of user-defined types ? Does the List<MyType> supported
> ?
>
> Gul
>
>
>
> -----Original Message-----
> From: Patrick Linskey [mailto:plinskey@gmail.com]
> Sent: Tuesday, November 06, 2007 3:04 PM
> To: users@openjpa.apache.org
> Subject: Re: Persisting list of built-in Java types with openjpa ?
>
> Currently, only vai serialization. We (BEA) are in the midst of moving
> Kodo's augmented container type support to OpenJPA, though.
>
> -Patrick
>
> On 11/6/07, Gul Onural <onural@nortel.com> wrote:
> >
> > Does OpenJPA support persisting List of built-in Java types ?
> >
> > For example, can I do this :
> >
> > @Entity
> > @Table(name = "TABLE_A")
> > public class MyEntity implements Serializable {
> >       @Id
> >       private int myId;
> >       private String myName;
> >       private List<String> myList;
> >       private List<Integer> mySecondList; }
> >
> >
> >
> >
> >
>
>
> --
> Patrick Linskey
> 202 669 5907
>



-- 
Patrick Linskey
202 669 5907

Mime
View raw message