[hibernate-issues] [Hibernate-JIRA] Commented: (OGM-19) Implement Referencable#getReference in OgmSessionFactory
Davide D'Alto (JIRA)
noreply at atlassian.com
Mon Jun 20 06:45:53 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/OGM-19?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=42669#action_42669 ]
Davide D'Alto commented on OGM-19:
----------------------------------
H,
I'm trying to implement this feature but I'm not sure how to create the Reference object.
Do I have to use the data from the delegate?
Something like this:
{code:java|title=OgmSessionFactory.java}
public Reference getReference() throws NamingException {
final Reference delRef = delegate.getReference();
return new Reference(
OgmSessionFactory.class.getName(),
delRef.get("uuid"),
delRef.getFactoryClassName(),
delRef.getFactoryClassLocation()
);
}
{code}
Thanks,
Davide
> 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