Orientation POJO OrientDB with embedded objects

When using the OrientDB object database, how can I tell the database that in my POJO, the link to another user-defined object or to a list of other custom objects should be stored in an in-built manner, not by links. Apparently, by default, OrientDB tries to store them in separate documents, which is not necessary in our case.

+6
source share
1 answer

You need to mark your embedded javax.persistence.Embedded list javax.persistence.Embedded annotation

 @Embedded List<YourEmbeddedClass> yourobjects; 
+5
source

Source: https://habr.com/ru/post/976046/


All Articles