Jira issue originally created by user yokoloko:
When you try to create a resultsetmappingbuilder for an entity with composite id made of associations. The result is not what we expect.
eg : SELECT o.productid, o.customer_id FROM customerorder o
Comment created by yokoloko:
It's easier to understand with a testcase, the problem is in the addAllClassFields method that for association mapping call the addMetaResult without saying if the column is an identifier or not
Comment created by @beberlei:
Fixed and merged into 2.4 and 2.3 release branches.
Issue was closed with resolution "Fixed"