> 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 <[EMAIL PROTECTED]> 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:[EMAIL PROTECTED] > Sent: Tuesday, November 06, 2007 3:04 PM > To: [email protected] > 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 <[EMAIL PROTECTED]> 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
