HQL problem with property-ref (example bidirectional one to one)

Description

Consider
<class name="Car">
<id name="id"/>
<many-to-one name="engine" column="engine_id" unique="true"/>
</class>

<class name="Engine">
<id name="id"/>
<one-to-one name="car" property-ref="engine"/>
</class>

SELECT DISTINCT car FROM Engine engine, Car car
WHERE engine = car.engine
Works fine

BUT

SELECT DISTINCT engine FROM Engine engine, Car car
WHERE engine.car = car

doesn't work

Environment

None

Activity

Show:
Brett Meyer
December 12, 2013, 7:41 PM

Rejecting. Almost no details and no test case.

Rejected

Assignee

Unassigned

Reporter

Anthony Patricio

Fix versions

None

Labels

None

backPortable

None

Suitable for new contributors

None

Requires Release Note

None

Pull Request

None

backportDecision

None

Components

Affects versions

Priority

Minor
Configure