I start with OrientDB and I got the basics right. But I can't figure out how to match many-to-many relationships in such a way as not to require me to check the integrity when deleting a record.
I am using an object database (ODatabaseObjectTx) and I am trying to match this simple relation:
Personality ↔ Roles
A person can have several roles, and a role can be assigned to several Persons. N to M.
My human class:
public class Person {
private String name;
public Person() {
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
My Role Class:
public class Role {
private String name;
public Role() {
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
, Set<Role> User Set<User> Role . , , , null. Set<Role> User.
RMDBS , OrientDB , ?
, , ? ? null , ? ( Set<Role> User AND Set<User> Role, , )?