Hibernate errors out in one-many relation, if the related entity has a instance field named size for one of the column.

Description

Hibernate errors out in one-many relation, if the related entity has a instance field named size for one of the column.

Run HibernateTest as java application to reproduce the error.

Environment

None

Activity

Show:
Sanne Grinovero
September 16, 2019, 7:13 PM

Hi, thanks for the testcase.

I’ve been looking at this today and it’s indeed a special case which we should fix, but I suspect this is rather something we should do in Hibernate ORM 6.

Sorry it will have to wait a bit, but the workaround is easy: change the property name if you need to use such HQL functions.

Sanne Grinovero
September 16, 2019, 7:14 PM

I’ve adapted the provided testcase and pushed it on my github fork as branch HHH-13510.

Assignee

Unassigned

Reporter

Venkatramanan Swaminathan

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Worked in

4.3.2

Components

Affects versions

Priority

Major
Configure