hibernate-orm
hibernate-orm copied to clipboard
Added test case for HHH-14125 'Selecting EntityCollection fails
Added test case for HHH-14125 'Selecting EntityCollection fails ("not an entity")'
select e.someStrings from EntityWithAnElementCollection e
fails with the Exception "not an entity". Fetching any property of basic type or entity association works. With ElementCollection, only works with explicit join.
I looked at org.hibernate.hql.internal.ast.tree.SelectClause#initializeExplicitSelectClause - selectExpression.isScalar()
is false
because CollectionType.isAssociation() returns true
. I've tried to change that, but this doesn't work and is clearly not the whole story. Unfortunately, I'm new to the code base and couldn't quite figure it out.
Thanks for your pull request!
This pull request does not follow the contribution rules. Could you have a look?
❌ All commit messages should start with a JIRA issue key matching pattern HHH-\d+
↳ Offending commits: [f73fa6d13229f9f73061bd0fc18e2cd012318728]
› This message was automatically generated.