Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-dev] Minutes: Functional Discussion - Ordered Lists

What should happen in case:
List l = new ArrayList();
l.add(obj1);
l.add(obj2);
l.add(obj3);
l.set(2, null);
 
There will be two rows inserted into the db.
 
When read back we'll get a list with two non-null elements.
 

----- Original Message -----
Sent: Tuesday, March 10, 2009 10:02 AM
Subject: RE: [eclipselink-dev] Minutes: Functional Discussion - Ordered Lists

My point was that it should be valid for users to have nulls. Corruption issues are secondary to functionality, I think, and should be solved around that.
-----Original Message-----
From: Gordon Yorke
Sent: Tuesday, March 10, 2009 8:25 AM
To: Dev mailing list for Eclipse Persistence Services
Subject: Re: [eclipselink-dev] Minutes: Functional Discussion - Ordered Lists

But then users would have to code checking for nulls during iteration for a case that should never happen.  Most users would not expect this requirement and would not code for it resulting in unrecoverable exceptions on read.
Better for us to ignore the corruption on read and fix the indexes on write.  Raising warnings if we do discover corruption.
--Gordon

Michael Keith wrote:
That's what I would expect. 
-----Original Message-----Andrei Ilitchev Monday, March 09, 2009 5:03 PMDev mailing list for Eclipse Persistence ServicesRe: [eclipselink-dev] Minutes: Functional Discussion Orderedyou saying that two rows in the db with order values 0 2 should be as a list of 3 elements with null in the middle?Original Message ----- "Michael Keith" <MICHAEL.KEITH@xxxxxxxxxx>"Dev mailing list for Eclipse Persistence Services" <eclipselink-dev@xxxxxxxxxxx>Monday, March 09, 2009 4:31 PMRE: [eclipselink-dev] Minutes: Functional Discussion Ordered couldn't be at the meeting.case that I wanted to mention is the null value case.example:l = new ArrayList();null);the order of obj1 to be 0 abd obj3 to be 2.re-read the list would be (obj1, null, obj3).comments below...   
-----Original Message-----Peter KroghMonday, March 09, 2009 2:45 PMeclipselink-dev@xxxxxxxxxxx[eclipselink-dev] Minutes: Functional Discussion - OrderedIssues:Non Contiguous Index valuesResolution: include the expected index in the where clause.  If thefails, assume that the list is non-contiguous.the list.     
Could it also be a list manipulation collision and be theof an optimistic lock exception?   
1.3.2.2 Indexing new elements in un-instantiated IndirectListsResolution: Don't support un-instantiated IndirectLists withList.OrderColumn tableResolution: One to Many: support OrderColumn on any Target table Join Table: only support OrderColumn on Join Table Throw an exception if any other table is specified.     
Okay.   
1.3.2.4 Duplicate supportResolution: Looking into Duplicates now. Will determine impact of supporting Duplicates as furtheris done. Duplicates with Private Owned an issue.     
Spec does not enumerate the duplicates issue.   
1.3.2.5 "Two-way" order supportEmployee.projects and Projects.employees; say add ORDER_EMPORDER_PROJ fields to the join table?Resolution: We are not at this time supporting a different ordering onmappings sharing the same join table (one being read only).     
Spec is silent on having ordered Lists on both sides of an m-m.be worth mentioning in the spec, though.   
1.3.2.6 Constraints in the DB - is that possible?Resolution: Log a Doc Bug: can't make index column part of the PK.Target optimistic lockingResolution: Only uni-directional, use the flags that already exist onMapping. Move the flags to OneToMany.Message-----Peter KroghMonday, March 09, 2009 9:11 AMeclipselink-dev@xxxxxxxxxxxRE: Functional Discussion - Ordered Listswill use the call in information described here:http://wiki.eclipse.org/EclipseLink/Development/DevMeetingsMessage-----Peter KroghThursday, March 05, 2009 3:39 PMeclipselink-dev@xxxxxxxxxxxFunctional Discussion - Ordered Listspropose that we have a dicussion on the functionalof Ordered Lists.doc with open issues is here:     
http://wiki.eclipse.org/EclipseLink/Development/JPA_2.0/ordered_lists 
Monday: Mar 9th 2009 1:00pm estDoug Clarke, Shaun Smith, Andrei Ilitchev, GordonMike KeithKroghmailing listeclipselink-dev@xxxxxxxxxxxhttps://dev.eclipse.org/mailman/listinfo/eclipselink-dev   
_______________________________________________mailing listeclipselink-dev@xxxxxxxxxxxhttps://dev.eclipse.org/mailman/listinfo/eclipselink-devmailing listeclipselink-dev@xxxxxxxxxxxhttps://dev.eclipse.org/mailman/listinfo/eclipselink-devmailing listeclipselink-dev@xxxxxxxxxxxhttps://dev.eclipse.org/mailman/listinfo/eclipselink-dev 


_______________________________________________
eclipselink-dev mailing list
eclipselink-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/eclipselink-dev

Back to the top