List Info

Thread: Created: (HHH-2564) StatelessSession query uniquing is inconsist




Created: (HHH-2564) StatelessSession query uniquing is inconsist
country flaguser name
United States
2007-04-15 07:05:04
StatelessSession query uniquing is inconsistent
-----------------------------------------------

                 Key: HHH-2564
                 URL: http://opensource.atlassian.com/projects/hiber
nate/browse/HHH-2564
             Project: Hibernate3
          Issue Type: Improvement
          Components: core
    Affects Versions: 3.2.3
            Reporter: Max Rydahl Andersen


StatelessSession uniquing is inconsistent as in sometimes a
query will use its temporary persistencecontext (introduced
for HHH-1266) to return unique entity instances and in
others it wont.

According to the initial semantics intended (see HHH-742) it
should actually do it for each query.

Main issue is that:

getEntityUsingInterceptor does not check temp
persistencecontext
internalLoad does not check temp persistencecontext nor
create proxies consistent with get()





-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the
administrators: http://opensource.atlassian.com/pro
jects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atl
assian.com/software/jira

        
_______________________________________________
hibernate-issues mailing list
hibernate-issueslists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-issu
es

Commented: (HHH-2564) StatelessSession query uniquing is inconsi
country flaguser name
United States
2007-04-15 07:10:04
    [ http://opensource.atlas
sian.com/projects/hibernate/browse/HHH-2564?page=com.atlassi
an.jira.plugin.system.issuetabpanels:comment-tabpanel#action
_26719 ] 

Max Rydahl Andersen commented on HHH-2564:
------------------------------------------

assume db with 1doc and 2 chapters
"select d from Document d left join d.chapters c"

returns two different Document instances

"select d from Document d left join fetch d.chapters
c"

returns two different Document instances, their chapters
point to the same instances, but chapter.getDocument() point
to two completelty different proxies

"ss.createQuery( "select d from Document d left
join fetch d.chapters c left join fetch c.document"

returns two different Document instances, their chapters
point to the same instances, and chapter.getDocument() point
to two completelty different proxies which in turn point to
the same Document root.






> StatelessSession query uniquing is inconsistent
> -----------------------------------------------
>
>                 Key: HHH-2564
>                 URL: http://opensource.atlassian.com/projects/hiber
nate/browse/HHH-2564
>             Project: Hibernate3
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.2.3
>            Reporter: Max Rydahl Andersen
>
> StatelessSession uniquing is inconsistent as in
sometimes a query will use its temporary persistencecontext
(introduced for HHH-1266) to return unique entity instances
and in others it wont.
> According to the initial semantics intended (see
HHH-742) it should actually do it for each query.
> Main issue is that:
> getEntityUsingInterceptor does not check temp
persistencecontext
> internalLoad does not check temp persistencecontext nor
create proxies consistent with get()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the
administrators: http://opensource.atlassian.com/pro
jects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atl
assian.com/software/jira

        
_______________________________________________
hibernate-issues mailing list
hibernate-issueslists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-issu
es

Updated: (HHH-2564) StatelessSession query uniquing is inconsist
country flaguser name
United States
2007-04-15 12:35:04
     [ http://opensource.atlassian.com/projects
/hibernate/browse/HHH-2564?page=com.atlassian.jira.plugin.sy
stem.issuetabpanels:all-tabpanel ]

Max Rydahl Andersen updated HHH-2564:
-------------------------------------

    Attachment: testforpcinstatelesssession.patch
                srcpcforstatelesssession.patch

src and test patch for suggested fix.

note that the test also contains a commented out test for
relevant stateless-Interceptor support.

> StatelessSession query uniquing is inconsistent
> -----------------------------------------------
>
>                 Key: HHH-2564
>                 URL: http://opensource.atlassian.com/projects/hiber
nate/browse/HHH-2564
>             Project: Hibernate3
>          Issue Type: Improvement
>          Components: core
>    Affects Versions: 3.2.3
>            Reporter: Max Rydahl Andersen
>         Attachments: srcpcforstatelesssession.patch,
testforpcinstatelesssession.patch
>
>
> StatelessSession uniquing is inconsistent as in
sometimes a query will use its temporary persistencecontext
(introduced for HHH-1266) to return unique entity instances
and in others it wont.
> According to the initial semantics intended (see
HHH-742) it should actually do it for each query.
> Main issue is that:
> getEntityUsingInterceptor does not check temp
persistencecontext
> internalLoad does not check temp persistencecontext nor
create proxies consistent with get()

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the
administrators: http://opensource.atlassian.com/pro
jects/hibernate/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atl
assian.com/software/jira

        
_______________________________________________
hibernate-issues mailing list
hibernate-issueslists.jboss.org
https://lists.jboss.org/mailman/listinfo/hibernate-issu
es

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )