Hi Chris, You could define OrientDB schema via API or SQL. You need a LINKSET types on that properties.
Best regards, Artem Orobets * Orient Technologiesthe Company behind OrientDB* 2014-05-28 16:10 GMT+03:00 Chris Klinger <[email protected]>: > Hey guys, > > i have some POJO's and work with the object database api. My relationship > in pojo is defined as: > > @OneToMany > private final Collection<AttributeGroup> describedByAttributeGroups = new > TreeSet<>(); > @OneToMany > private final Collection<Attribute> describedByAttributes = new > TreeSet<>(); > > The class itself, AttributeGroup and Attribute are created as schema > classes. But the relation will be created as embedded on the class. It is > possible to affect the relastion type, e.g. by an annotation? i found no > information on this topic in the documentation. > > -- > > --- > You received this message because you are subscribed to the Google Groups > "OrientDB" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. > -- --- You received this message because you are subscribed to the Google Groups "OrientDB" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
