Hi Roger,
This function is newly added to the openjpa trunk for jpa 2.0.
You can specify the following so that each element in the options collection
is stored in the CLOB column:
@ElementCollection
@Column(columnDefinition="CLOB")
protected List<String> options = new ArrayList<String>();
Hope this helps.
Regards,
Fay
--- On Wed, 1/21/09, Roger Keays <[email protected]> wrote:
> From: Roger Keays <[email protected]>
> Subject: How to specify @Lob for PersistentCollection ElementColumn?
> To: [email protected]
> Date: Wednesday, January 21, 2009, 10:36 PM
> Hi,
>
> Is it possible to specify the elements of a
> PersistenCollection to be lobs? i.e:
>
> @PersistentCollection
> @ElementColumn(??)
> List<String> options;
>
> The elements are long strings.
>
> Thanks in advance,
>
> Roger