OrientDB is the most versatile DBMS supporting Graph, Document, Reactive, Full-Text and Geospatial models in one Multi-Model product. OrientDB can run distributed (Multi-Master), supports SQL, ACID Transactions, Full-Text indexing and Reactive Queries.
if (linkedClazz==null) linkedClazz = f.getType();
generateLinkProperty(database, schema, field, t, linkedClazz);
break;
case LINKLIST:
case LINKMAP:
case LINKSET:
I fixed 2 problems targetEntity is not considered in the actual release and javax.validation stack dont work with orientdb.
Bottom you can find the fixes
diff --git a/object/src/main/java/com/orientechnologies/orient/object/enhancement/OObjectEntitySerializer.java b/object/src/main/java/com/orientechnologies/orient/object/enhancement/OObjectEntitySerializer.java index 6cb8b05..3df990e 100755 --- a/object/src/main/java/com/orientechnologies/orient/object/enhancement/OObjectEntitySerializer.java +++ b/object/src/main/java/com/orientechnologies/orient/object/enhancement/OObjectEntitySerializer.java @@ -38,6 +38,7 @@
import javax.persistence.CascadeType; import javax.persistence.ManyToMany; +import javax.persistence.ManyToOne; import javax.persistence.OneToMany; import javax.persistence.OneToOne;
@@ -944,6 +945,21 @@ return null; return getField(fieldName, iClass.getSuperclass()); }
@SuppressWarnings("unchecked") public static T getNonProxiedInstance(T iObject) {
diff --git a/object/src/main/java/com/orientechnologies/orient/object/jpa/OJPAPersistenceProvider.java b/object/src/main/java/com/orientechnologies/orient/object/jpa/OJPAPersistenceProvider.java
old mode 100644
new mode 100755
index 522239b..1dfd11f
--- a/object/src/main/java/com/orientechnologies/orient/object/jpa/OJPAPersistenceProvider.java
+++ b/object/src/main/java/com/orientechnologies/orient/object/jpa/OJPAPersistenceProvider.java
@@ -29,13 +29,14 @@
import javax.persistence.spi.ProviderUtil;
import com.orientechnologies.orient.core.entity.OEntityManager; +import com.orientechnologies.orient.object.jpa.OJPAProviderUtil; import com.orientechnologies.orient.object.jpa.parsing.PersistenceXmlUtil;
@SuppressWarnings("rawtypes") public class OJPAPersistenceProvider implements PersistenceProvider { /* the log used by this class. /
- private static Logger logger = Logger.getLogger(OJPAPersistenceProvider.class.getName());
private static OJPAProviderUtil providerUtil=new OJPAProviderUtil(); private Collection<? extends PersistenceUnitInfo> persistenceUnits = null;
public OJPAPersistenceProvider() { @@ -77,6 +78,6 @@
@Override public ProviderUtil getProviderUtil() {
} + +} diff --git a/object/src/main/java/com/orientechnologies/orient/object/metadata/schema/OSchemaProxyObject.java b/object/src/main/java/com/orientechnologies/orient/object/metadata/schema/OSchemaProxyObject.java old mode 100644 new mode 100755 index d3ef4d2..1f3092f --- a/object/src/main/java/com/orientechnologies/orient/object/metadata/schema/OSchemaProxyObject.java +++ b/object/src/main/java/com/orientechnologies/orient/object/metadata/schema/OSchemaProxyObject.java @@ -262,13 +262,16 @@ switch (t) {