You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by Vicente de Rivera III <th...@gmail.com> on 2009/09/20 08:16:14 UTC

java.util.List to pivot List

Right now I'm implementing my backend Hibernate JPA. As my DAO returns the
standard java.util.List, how do I convert it to
org.apache.pivot.collections.List?
thanks and good pm!

Re: java.util.List to pivot List

Posted by Todd Volkert <tv...@gmail.com>.
Yep - use a org.apache.pivot.collections.adapter.ListAdapter.  It takes a
java.util.List and wraps it.

-T

On Sun, Sep 20, 2009 at 2:18 AM, Vicente de Rivera III <
thirdy.derivera@gmail.com> wrote:

> I'd convert it to array first right? Although that ok with me, but if
> there's a better way (performance wise), the better
>
>
> On Sun, Sep 20, 2009 at 2:16 PM, Vicente de Rivera III <
> thirdy.derivera@gmail.com> wrote:
>
>> Right now I'm implementing my backend Hibernate JPA. As my DAO returns the
>> standard java.util.List, how do I convert it to
>> org.apache.pivot.collections.List?
>> thanks and good pm!
>>
>
>

Re: java.util.List to pivot List

Posted by Vicente de Rivera III <th...@gmail.com>.
I'd convert it to array first right? Although that ok with me, but if
there's a better way (performance wise), the better

On Sun, Sep 20, 2009 at 2:16 PM, Vicente de Rivera III <
thirdy.derivera@gmail.com> wrote:

> Right now I'm implementing my backend Hibernate JPA. As my DAO returns the
> standard java.util.List, how do I convert it to
> org.apache.pivot.collections.List?
> thanks and good pm!
>