CMDBuild Forum

CMDBuild 1.5.2; N:N Cardinality not working

Dear Support,

 

We have 2 Classes. One named "Servers" containing Server names and the other "NetworkInterfaces" containing NIC names and IP addresses. As one server can have more than one NIC, I created a N:N Domain (Origin: NetworkInterfaces, Destination: Servers) between the 2 classes. BUT when I try to create another Attribute inside Server class as Type REFERENCE the domain mentioned above doesn't appear in the drop-down menu. So i cannot create the attribute and the link between the 2 classes. Why?

I tried to restart de tomcat and the database services but nothing changed. I've also deleted the domain and recreated inside the other class(Servers) but still no good result.

Thank you in advance for your answer.

Cristian,

Dear Cristian,


reference attributes can be linked to 1:N or N:1 domains only (on the N side). Your situation does not seem to fit N:N domains since the same network card cannot belong to more than one server! What I would suggest is:
  • Domain 1:N between Servers and NetworkInterfaces (with "Master/Detail" flag on so that you can easily edit the network cards from the Details tab of each server without switching to the NetworkInterfaces class)
  • (Optional) Reference on NetworkInterfaces if you want to see on each NetworkInterfaces card the server
I consider the reference optional because the same information can be inferred by its relation on that same domain.

Paolo

Dear Paolo,

 

 

Thank you for your answer.

This thing with the Details Tab is nice, but I've notticed that I can only add new network cards. Isn't it possibe to select the cards already inserted in the NetworkInterface calss?

 

Thanks,

Cristian

You are right, that’s not possible, but you will find the network card among the details as soon as you add/change the relation with the server.


Paolo
 

Tecnoteca ha scritto:

You are right, that's not possible, but you will find the network card among the details as soon as you add/change the relation with the server.

Paolo
 
Ideed. I've created the relation and I can see what I need in the Details Tab. Thank you very much guys  you've done a good job with this project. Hope to see you in Bolognia

on 10th of May.

 

Have a nice day,

Cristian