Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEike Stepper2008-10-30 03:49:52 -0400
committerEike Stepper2008-10-30 03:49:52 -0400
commit892b2a704060f8a0a92e21ca6c3c09b0bdba066d (patch)
tree4082e0df59c4ea109c1a0f0ef49c2af5c38026cd
parent811c655c3f222376c0fa92c7a995a2ba9fcf1c35 (diff)
downloadcdo-892b2a704060f8a0a92e21ca6c3c09b0bdba066d.tar.gz
cdo-892b2a704060f8a0a92e21ca6c3c09b0bdba066d.tar.xz
cdo-892b2a704060f8a0a92e21ca6c3c09b0bdba066d.zip
[251307] [Hibernate] Implement resources in a hierarchical structure
https://bugs.eclipse.org/bugs/show_bug.cgi?id=251307
-rw-r--r--plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreAccessor.java16
1 files changed, 7 insertions, 9 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreAccessor.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreAccessor.java
index 959e077ec1..573094e026 100644
--- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreAccessor.java
+++ b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/HibernateStoreAccessor.java
@@ -280,21 +280,19 @@ public class HibernateStoreAccessor extends StoreAccessor implements IHibernateS
private CDOIDHibernate getHibernateID(CDOID id)
{
- CDOIDHibernate folderID = null;
if (!CDOIDUtil.isNull(id))
{
if (id instanceof CDOIDHibernate)
{
- folderID = (CDOIDHibernate)id;
- }
- else
- {
- // TODO Can this happen? When?
- final long longID = CDOIDUtil.getLong(id);
- folderID = CDOIDHibernateFactoryImpl.getInstance().createCDOID(longID, CDOResourceNodeClass.NAME);
+ return (CDOIDHibernate)id;
}
+
+ // TODO Can this happen? When?
+ final long longID = CDOIDUtil.getLong(id);
+ return CDOIDHibernateFactoryImpl.getInstance().createCDOID(longID, CDOResourceNodeClass.NAME);
}
- return folderID;
+
+ return null;
}
private CDOFeature getResourceNameFeature()

Back to the top