persistence@glassfish.java.net

Re: field of type List<String>

From: Craig L Russell <Craig.Russell_at_Sun.COM>
Date: Mon, 05 Mar 2007 11:48:15 -0800

Hi Jon,

This is a specification issue.

You might consider commenting at ejb3-spec-feedback_at_sun.com and see
what the experts have to say.

Craig

On Mar 4, 2007, at 8:08 PM, Sanjeeb Kumar Sahoo wrote:

> It was never suggested that the interface be Serializable. The
> field can use an implementation that's Serializable.
>
> Thanks,
> Sahoo
>
> Jon Miller wrote:
>> IMHO, it should be OK to use the List interface as long as it
>> points to a class that implements Serializable. i.e. List<String>
>> property = ArrayList<String>(); should work. Why should the
>> interface have to be serializable? I don't like the idea of having
>> to hard code it to a concrete type.
>>
>> Jon

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