Data consists of types from another dependency

Hi all,

we have a Java project that currently store the data in-memory, Now we want to store the data in a graph database. The data partly consists of types from another dependency. How to I deal with this? How can I create custom property types?

Many thanks in advance.

Hi @teufel

It depends on how complex these data types are.
There is no easy way to define new “simple” data types (ie. property types) in OrientDB, so if the basic types (strings, numbers, binary and so on) are not enough, you can convert your data to string or byte array and then store it like that.
If your data types are more complex, you can represent them as nested documents, see https://orientdb.com/docs/last/Tutorial-Document-and-graph-model.html

I hope it helps

Thanks

Luigi

1 Like