[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-1419) Update + Exists doesn't seem to work
Steve Ebersole (JIRA)
noreply at atlassian.com
Mon Mar 21 13:00:58 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Steve Ebersole closed HHH-1419.
-------------------------------
Closing stale resolved issues
> Update + Exists doesn't seem to work
> ------------------------------------
>
> Key: HHH-1419
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1419
> Project: Hibernate Core
> Issue Type: Bug
> Components: query-hql
> Affects Versions: 3.1.1
> Reporter: Bill Burke
> Assignee: Steve Ebersole
> Fix For: 3.2.0.alpha1, 3.1.3
>
> Attachments: ex09_1.zip
>
>
> Don't know if this is me or not but this query doesn't seem to work with the many to many relationship between reservation and customer:
> Query query;
> query = manager.createQuery("UPDATE Reservation res " +
> "SET res.amountPaid = (res.amountPaid + 10) " +
> "WHERE EXISTS (" +
> "SELECT c FROM res.customers c " +
> "where c.firstName = 'Bill' and " +
> "c.lastName='Burke')");
> query.executeUpdate();
--
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list