[hibernate-issues] [Hibernate-JIRA] Created: (HHH-4556) session is not flushed before criteria query with subselect
Jean-Baptiste Nizet (JIRA)
noreply at atlassian.com
Mon Nov 9 11:33:10 EST 2009
session is not flushed before criteria query with subselect
-----------------------------------------------------------
Key: HHH-4556
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4556
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.3.2
Reporter: Jean-Baptiste Nizet
With flush mode AUTO, if I persist some instances of an entity class "A" and then run a criteria query on this entity (for example, the criteria equivalent of select a from A a where a.prop = 'foo'), Hibernate flushes the session before executing the query.
However, if the criteria doesn't query on this entity, but contains a subquery which does (for example, the criteria equivalent of select B.id from B b where b.id not in (select a.b.id from A a where a.prop = 'foo')), Hibernate should flush the session but doesn't.
--
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