[infinispan-issues] [JBoss JIRA] (ISPN-3954) Use Hibernate's StatelessSession for the JPACacheStore

Radim Vansa (JIRA) issues at jboss.org
Mon Mar 31 08:08:14 EDT 2014


    [ https://issues.jboss.org/browse/ISPN-3954?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12957696#comment-12957696 ] 

Radim Vansa commented on ISPN-3954:
-----------------------------------

>From Hibernate docs:
{quote}
Collections are ignored by a stateless session
{quote}

Doesn't this mean that if I have entity with @ElementCollection, the collection won't get loaded/updated?
                
> Use Hibernate's StatelessSession for the JPACacheStore
> ------------------------------------------------------
>
>                 Key: ISPN-3954
>                 URL: https://issues.jboss.org/browse/ISPN-3954
>             Project: Infinispan
>          Issue Type: Enhancement
>          Components: Loaders and Stores
>            Reporter: Emmanuel Bernard
>            Assignee: Radim Vansa
>              Labels: 630
>
> The current model uses the regular session even though operations are tailored toward actions (insert, update, delete).
> It would be better to make use of the Hibernate StatelessSession API which has been designed for these use cases.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the infinispan-issues mailing list