Out of Date
Details
Assignee
UnassignedUnassignedReporter
Thomas VölkThomas VölkComponents
Affects versions
Priority
Minor
Details
Details
Assignee
Unassigned
UnassignedReporter
Thomas Völk
Thomas VölkComponents
Affects versions
Priority
Created September 8, 2023 at 2:58 PM
Updated February 26, 2024 at 1:16 PM
Resolved February 26, 2024 at 1:16 PM
org.hibernate.query.sqm.tree.domain.SqmCteRoot
extendsorg.hibernate.query.sqm.tree.from
.SqmRoot
and inherits thetoString()
method from it.The
toString()
method callsgetEntityName()
which in turn callsgetModel().getHibernateEntityName()
.But
SqmCteRoot
overridesgetModel()
and returns null.which causes the
toString()
method to always fail with ajava.lang.NullPointerException
.I noticed this when I changed my log level to
TRACE
andorg.hibernate.query.hql.internal.DomainPathPart.resolvePathPart()
tried to log aSqmCteRoot
object.I think that a workaround could be to override the toString() method as well.
It is hard for me to construct a test case because I am not sure what
toString()
should produce.