Attempt to read invalid column when loading collection of subclasses mapped with table-per-subclass with discriminator

Description

This problem is described in this forum post:

http://forum.hibernate.org/viewtopic.php?t=992703

Hibernate attempts to read an invalid column from the collection result set when the following conditions are present:

1. Instances of a subclass are contained in a collection
2. The subclasses are single-table + a <join> (table-per-subclass with discriminator)
3. The <join> portion of the subclass contains at least 3 of its own columns
4. The <join> tables are fetched by select (non default)

Environment

None

Activity

Show:
Chris Bredesen
December 9, 2008, 11:14 PM

This results in an error something like this:

INFO IntegerType:203 - could not read column value from result set: l4_3_; Invalid column name

Chris Bredesen
December 10, 2008, 4:01 AM

fixed in trunk / 3.3 / 3.2 / 3.2cp

Steve Ebersole
March 21, 2011, 7:06 PM

Bulk closing stale resolved issues

Fixed

Assignee

Chris Bredesen

Reporter

Chris Bredesen

Fix versions

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

Affirmative

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure