Description

Deep load of entity with two levels of nested collections brings wrong result when first collection mapped as bag.
In provided example I try to fetch specified blog with it's posts and with it's posts' comments (Blog->Posts->Comments). It works correctly when Blog->Posts mapped as set, but fails when Blog->Posts mapped as bag. I have provided tests for different combinations of bag-set mappings. Also tested different query methods: linq, query over and criteria api.
In my real model I need it mapped as bag, so mapping as a set is not a workarround for me.

Tested with
NH 3.3.1.4000
.NET 4.5
SqlServer 2008 Express

Full test code: https://github.com/stanb/NHExperiments/tree/master/NHBugs

Environment

None

Attachments

6
  • 06 Nov 2012, 12:53 AM
  • 06 Nov 2012, 12:53 AM
  • 06 Nov 2012, 12:53 AM
  • 06 Nov 2012, 12:53 AM
  • 06 Nov 2012, 12:53 AM
  • 06 Nov 2012, 12:53 AM

Activity

Show:
Pinned fields
Click on the next to a field label to start pinning.
Details

Assignee

Reporter

Stan Belkin

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created November 6, 2012 at 12:53 AM
Updated November 6, 2012 at 12:53 AM
Who's Looking?