[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[List Home]
|
Re: [eclipselink-users] @ManyToMany relationship for a List?
|
- From: cowwoc <cowwoc@xxxxxxxxxxxxxxxx>
- Date: Sat, 29 Nov 2008 14:58:17 -0800 (PST)
- Delivered-to: eclipselink-users@eclipse.org
FYI, I filed a bug report for the original issue:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=256978
Gili
cowwoc wrote:
>
>
> Tim Hollosy wrote:
>>
>> Anyway, on to your second question. Implementing indexed lists. What
>> do you mean implementing indexed lists on top of JPA?
>>
>> java.util.List is already indexed..so I don't really follow your
>> question.
>>
>
> JPA 1.0 does not retain the element index. The best you can do is
> @OrderBy. If the order is arbitrary (chosen by the end-user) you need to
> rely in ordering by indexes but currently JPA will not manage indexes for
> you under the hood. For example, if you want to insert an element between
> two other elements you will need to update the indexes of all elements
> that allow, etc.
>
> Gili
>
--
View this message in context: http://www.nabble.com/%40ManyToMany-relationship-for-a-List--tp20749567p20752500.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.