[hibernate-issues] [Hibernate-JIRA] Commented: (OGM-19) Implement Referencable#getReference in OgmSessionFactory

Emmanuel Bernard (JIRA) noreply at atlassian.com
Mon Jun 20 10:33:56 EDT 2011


    [ http://opensource.atlassian.com/projects/hibernate/browse/OGM-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42671#action_42671 ] 

Emmanuel Bernard commented on OGM-19:
-------------------------------------

I don't think so.
If you do that, the Reference will point to the SessionFactory and not the OgmSessionFactoryObjectFactory. Somehow you need to something similar to what is done is Hibernate Core and quite likely implement an OgmSessionFactoryObjectFactory. Since OgmSessionFactory is stateless (so far), you can find a way to implement OgmSessionFactoryObjectFactory so that you create a new instance of OgmSessionFactoryObjectFactory and point to the same underlying SessionFactory via its reference thing.

that's a bit of a guess, I'm not sure how Referencable work.

> Implement Referencable#getReference in OgmSessionFactory
> --------------------------------------------------------
>
>                 Key: OGM-19
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/OGM-19
>             Project: Hibernate OGM
>          Issue Type: New Feature
>          Components: core
>            Reporter: Emmanuel Bernard
>            Assignee: Davide D'Alto
>            Priority: Trivial
>
> low priority

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