When using the Object Database of OrientDB, how can I tell the database, that in my POJO the reference to another custom object or to a list of other custom objects should be stored in the embedded way and not with links. It seems that by default, OrientDB tries to store them in separate documents, which is unnecessary in my case.
You need mark your embedded list with javax.persistence.Embedded
annotation
@Embedded
List<YourEmbeddedClass> yourobjects;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With