org.hibernate.QueryException: query specified join fetching, but the owner of the fetched association was not present in the select list [FromElement{explicit,not a collection join,fetch join,fetch non-lazy properties,classAlias=null,role=demo.B.c,tableName=c,tableAlias=c3_,origin=b b2_,columns={b2_.b_id ,className=demo.C}}]

Searched on Google with the first line of a JAVA stack trace?

We can recommend more relevant solutions and speed up debugging when you paste your entire stack trace with the exception message. Try a sample exception.

Recommended solutions based on your search

Solutions on the web

via Stack Overflow by Patrick Gotthard
, 1 year ago
query specified join fetching, but the owner of the fetched association was not present in the select list [FromElement{explicit,not a collection join,fetch join,fetch non-lazy properties,classAlias=null,role=demo.B.c,tableName=c,tableAlias=c3_,origin=b b2_,columns={b2_.b_id ,className=demo.C}}]
via Stack Overflow by g00glen00b
, 2 years ago
query specified join fetching, but the owner of the fetched association was not present in the select list [FromElement{explicit,not a collection join,fetch join,fetch non-lazy properties,classAlias=f,role=org.xyz.Personnel.function,tableName=function_company,tableAlias=function1_,origin=personnel personnel0_,columns={personnel0_.code_function ,className=org.xyz.Function}}]
via Stack Overflow by geneqew
, 1 year ago
Parameters are only supported in SELECT clauses when used as part of a INSERT INTO DML statement
via Hibernate JIRA by binchen, 1 year ago
query specified join fetching, but the owner of the fetched association was not present in the select list [FromElement{explicit,not a collection join,fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=T_SEC_Role,tableAlias
via Hibernate JIRA by binchen, 1 year ago
query specified join fetching, but the owner of the fetched association was not present in the select list [FromElement{explicit,not a collection join,fetch join,fetch non-lazy properties,classAlias=null,role=null,tableName=T_SEC_Role,tableAlias
via Stack Overflow by alexanoid
, 1 year ago
query specified join fetching, but the owner of the fetched association was not present in the select list [FromElement{explicit,not a collection join,fetch join,fetch non-lazy properties,classAlias=cardCategoryLevel,role
org.hibernate.QueryException: query specified join fetching, but the owner of the fetched association was not present in the select list [FromElement{explicit,not a collection join,fetch join,fetch non-lazy properties,classAlias=null,role=demo.B.c,tableName=c,tableAlias=c3_,origin=b b2_,columns={b2_.b_id ,className=demo.C}}]
at org.hibernate.hql.internal.ast.tree.SelectClause.initializeExplicitSelectClause(SelectClause.java:214)
at org.hibernate.hql.internal.ast.HqlSqlWalker.useSelectClause(HqlSqlWalker.java:920)
at org.hibernate.hql.internal.ast.HqlSqlWalker.processQuery(HqlSqlWalker.java:688)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.query(HqlSqlBaseWalker.java:673)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.selectStatement(HqlSqlBaseWalker.java:309)
at org.hibernate.hql.internal.antlr.HqlSqlBaseWalker.statement(HqlSqlBaseWalker.java:257)
at org.hibernate.hql.internal.ast.QueryTranslatorImpl.analyze(QueryTranslatorImpl.java:262)

Users with the same issue

3 times, 1 year ago
2 times, 1 month ago
18 times, 7 months ago
7 times, 1 year ago

Know the solutions? Share your knowledge to help other developers to debug faster.