Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 366401 - Null elements in onetomany relation entity
Summary: Null elements in onetomany relation entity
Status: CLOSED WORKSFORME
Alias: None
Product: z_Archived
Classification: Eclipse Foundation
Component: Eclipselink (show other bugs)
Version: unspecified   Edit
Hardware: Other Linux
: P2 critical (vote)
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-12-12 08:40 EST by Missing name Mising name CLA
Modified: 2022-06-09 10:09 EDT (History)
2 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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