[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2364) DetachedCriteria.getExecutableCriteria(session) does not return a new criteria each time

Gail Badner (JIRA) noreply at atlassian.com
Wed Jan 31 19:12:41 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2364?page=comments#action_25964 ] 

Gail Badner commented on HHH-2364:
----------------------------------

I believe this is expected behavior.

A DetachedCriteria provides a way to create a query outside of the scope of a Session. Calling DetachedCriteria.getExecutableCriteria(session) creates a Criteria for the DetachedCriteria for a particular Session. It makes sense that calling DetachedCriteria.getExecutableCriteria(session) more than once for the same DetachedCriteria in the same Session would give the same Criteria.

Gail Badner
SourceLabs - http://www.sourcelabs.com
Dependable Open Source Systems


> DetachedCriteria.getExecutableCriteria(session) does not return a new criteria each time
> ----------------------------------------------------------------------------------------
>
>          Key: HHH-2364
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2364
>      Project: Hibernate3
>         Type: Bug

>   Components: query-criteria
>     Versions: 3.2.1
>     Reporter: Amir Pashazadeh

>
>
> detachedCriteria.getExecutableCriteria(session) does not return a new Criteria each time;
> so if some projection or ... is applied on the result criteria, it will remain on next criterias.

-- 
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