Issues
- UnknownTableReferenceException when two subclasses have same field with different typeHHH-15369Resolved issue: HHH-15369Andrea Boriero
- Lift embedded/id-class to-one selection limitation for from clause subqueriesHHH-15367Resolved issue: HHH-15367Christian Beikov
- Update assignment type check should allow subtypesHHH-15361Resolved issue: HHH-15361Christian Beikov
- Listagg with nulls clause emulation in H2 before 2.0HHH-15360Resolved issue: HHH-15360Christian Beikov
- @Where annotation with globally_quoted_identifiers causes Unable to determine TableReference ExceptionHHH-15358Resolved issue: HHH-15358Andrea Boriero
- ClassCastException when selecting map key FK partHHH-15357Resolved issue: HHH-15357Christian Beikov
- NPE building mapping from HBM for associations targeting a non existing entityHHH-15354Resolved issue: HHH-15354Andrea Boriero
- Comparing entity join alias with collection part failsHHH-15349Resolved issue: HHH-15349Christian Beikov
- Parent identity check in NavigablePath#relativize is too strictHHH-15347Resolved issue: HHH-15347Christian Beikov
- @ManyToOne associations not loaded correctly with default EAGER and batch fetch property setHHH-15346Resolved issue: HHH-15346Andrea Boriero
- NPE in type determination for case expression returning null literalHHH-15343Resolved issue: HHH-15343Christian Beikov
- Inappropriate variation of HQL left join to SQL inner joinHHH-15342Resolved issue: HHH-15342Andrea Boriero
- Disallow transient entities as parametersHHH-15341Resolved issue: HHH-15341Christian Beikov
- Association in embedded id initialized to null when selectedHHH-15339Resolved issue: HHH-15339Christian Beikov
- Impossible to give same path expression multiple aliasesHHH-15338Resolved issue: HHH-15338Christian Beikov
- Hibernate.size(), get(), contains()HHH-15332Resolved issue: HHH-15332Gavin King
- Constructor expressions in the SELECT clause ignores attribute converterHHH-15331Resolved issue: HHH-15331Andrea Boriero
- Remove workaround for HHH-10382HHH-15329Resolved issue: HHH-15329Christoph Dreis
- Avoid allocations from BitSet.stream() in AbstractEntityPersister.resolveDirtyAttributeIndexes()HHH-15325Resolved issue: HHH-15325Christoph Dreis
- Hibernate (6.0.2) Regression. Sets Legacy java.persistence properties, then logs deprecation warnings on these which spams logHHH-15324Resolved issue: HHH-15324Andrea Boriero
- Hibernate Gradle plugin is not working for Kotlin projectsHHH-15314Resolved issue: HHH-15314Steve Ebersole
UnknownTableReferenceException when two subclasses have same field with different type
Description
Attachments
Activity
Andrea BorieroJune 28, 2022 at 6:50 AM
Hi,
Thanks a lot for the Jira and the test case, I’m going to work on it!
Krister EmrénJune 27, 2022 at 3:39 PMEdited
I turned on debug outputs and it might also be getting confused by a circular dependency: while generating ‘staticFetchList’ for RawMaterialInheritance
, it tries to resolve (AbstractMaterial
)ancestor). (RawMaterialInheritance
)inheritance)
Indeed, changing ancestor to either DriMaterial
or HotMetalMaterial
instead of AbstractMaterial
also makes the test case pass (which possibly hints at a too shallow inspection, since both those are sub-classes of AbstractMaterial
and thus also have the inheritance field).
Krister EmrénJune 27, 2022 at 1:20 PM
Confirmed that when I give them distinct names (rsFurnace and bFurnace respectively) the problem goes away. However, the original files are in a JAR file that I do not have source access to, so if it is possible to make it work again it would be really helpful.
After upgrading to 6.0.2, our application fails to start with a
UnknownTableReferenceException
. Shrinking the test case leads me to believe that the problem is two sub-entites (DriMaterial
andHotMetalMaterial
) both add a property furnace, but of different type (ReductionShaftFurnace
andBlastFurnace
, respectively).The exception mentions
BlastFurnace
as the unknown table (technically, its table in the database), andHotMetalMaterial
is also defined belowDriMaterial
in the HBM file.