HQL problem with property-ref (example bidirectional one to one)
----------------------------------------------------------------
Key: HHH-3460
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3460
Project: Hibernate3
Issue Type: Bug
Components: query-hql
Affects Versions: 3.3.0.SP1
Reporter: Anthony Patricio
Priority: Minor
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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira