Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

NH-3317 - Deep load of root entity with <bag> of details entities that contains collection of deeper entities returns wrong number of detail's entities #1288

Open
nhibernate-bot opened this issue Oct 12, 2017 · 0 comments

Comments

@nhibernate-bot
Copy link
Collaborator

Stan Belkin created an issue — 6th November 2012, 0:53:03:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants