Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 366401

Summary: Null elements in onetomany relation entity
Product: z_Archived Reporter: Missing name Mising name <mejar.singh>
Component: EclipselinkAssignee: Project Inbox <eclipselink.orm-inbox>
Status: CLOSED WORKSFORME QA Contact:
Severity: critical    
Priority: P2 CC: christopher.delahunt, tom.ware
Version: unspecified   
Target Milestone: ---   
Hardware: Other   
OS: Linux   
Whiteboard:

Description Missing name Mising name CLA 2011-12-12 08:40:29 EST
Build Identifier: build=20101206_v100_20111212_1418

I find that sometimes I see a null element in a transaction, after having inserted a element into a parent onetomany relationship.
Think it's the bug listed in https://bugs.eclipse.org/bugs/show_bug.cgi?id=247041.
Isn't this solved ?

Reproducible: Sometimes

Steps to Reproduce:
1.insert a element in a parent entity
2. in a new transaction the parens elementlist contains a null element
Parent has this attributes:
@OneToMany(mappedBy = "hopl", cascade={CascadeType.REMOVE})
  @OrderBy("startdato")
  @XmlTransient
  public Collection<SkolefagPaHoldPlacering> getVeuSkolefagPaHoldPlacCollection() {
    return this.veuSkolefagPaHoldPlacCollection;
  }
Comment 1 Tom Ware CLA 2011-12-14 15:53:11 EST
Does this fail on our 2.3.1 release? (I'm having trouble reading the build identifier)

If so, please provide, at least, some pseudo code that deomonstrates the problem.
Comment 2 Tom Ware CLA 2011-12-22 10:38:44 EST
Setting target and priority.  See the following page for the meanings of these fields:

http://wiki.eclipse.org/EclipseLink/Development/Bugs/Guidelines

Community: Please vote for this bug if it is important to you.  Votes are one of the main criteria we use to determine which bugs to fix next.
Comment 3 Chris Delahunt CLA 2012-11-21 13:48:42 EST
@OrderBy on a Collection using a @OneToMany mapping works in the nightly tests.  If this is still an issue, please update with the information requested by Tom - the version being used and the code to reproduce the issue.
Comment 4 Eclipse Webmaster CLA 2022-06-09 10:09:51 EDT
The Eclipselink project has moved to Github: https://github.com/eclipse-ee4j/eclipselink