Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOPropertyGetter.java9
1 files changed, 4 insertions, 5 deletions
diff --git a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOPropertyGetter.java b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOPropertyGetter.java
index 49eab936d9..069e52e064 100644
--- a/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOPropertyGetter.java
+++ b/plugins/org.eclipse.emf.cdo.server.hibernate/src/org/eclipse/emf/cdo/server/internal/hibernate/tuplizer/CDOPropertyGetter.java
@@ -92,16 +92,15 @@ public class CDOPropertyGetter extends CDOPropertyHandler implements Getter
value = null;
}
}
-
+
// this happens when you don't set a value explicitly in CDO
- // then null is passed while the user may expect the default
+ // then null is passed while the user may expect the default
// value to be set.
- if (value == null && eFeature.isRequired()) {
+ if (value == null && eFeature.isRequired())
+ {
value = eFeature.getDefaultValue();
}
- System.err.println(value);
-
// hibernate sees eenums, CDO sees int
if (isEEnum && value != null)
{

Back to the top