Many-To-Many with Property-ref fails to get subitems with FetchMode Join

Description

When I try to get an item with a many-to-many relation and property-ref on both sides NHibernate produces an exception. If I use FetchMode Select there is no Problem but with Join I get this error.

I tried to figure out what exactly the problem is but I don't get it. It seems to be a problem in building the mappings. While loading the object I think that AbstractPersister should create an UniqueKeyLoader. The decision if it should creat the kealoader is made while the mappingbuilding.

The patch contains the two testcases with fetchmode select and join.

Environment

None

Assignee

Frédéric Delaporte

Reporter

Armin Landscheidt

Components

Fix versions

Affects versions

Priority

Major
Configure