bad update query for HQL queries on entities with secondary table
-----------------------------------------------------------------
Key: ANN-852
URL:
http://opensource.atlassian.com/projects/hibernate/browse/ANN-852
Project: Hibernate Annotations
Issue Type: Bug
Components: binder
Environment: Oracle 10g r2
Reporter: Amir Pashazadeh
suppose an entity is mapped on 2 tables, and the primary key of both tables are named as
"id" (in database).
an HQL query like:
update MyEntity set field1 = :1 where id = :2
generates column ambiguously defined exception (on Oracle).
I'm not sure whether this issue is a problem in Hibernate Core or in Hibernate
Annotations
--
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