orientechnologies / orientdb

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.
https://orientdb.dev
Apache License 2.0
4.75k stars 871 forks source link

Fix for javax.persistence and javax.validation #2407

Closed publicocean0 closed 10 years ago

publicocean0 commented 10 years ago

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()); }

enisher commented 10 years ago

@publicocean0 it is hard to manage patches in this way. Could you provide a pull request into develop branch?

publicocean0 commented 10 years ago

yes :) sorry for the delay.