CMDBuild Forum

Relation definition problem

problem 1:

i've two classes: ip and servers
and i want each ip should be used no more than one time
how do i define the domain properties?
 
problem 2:
if i associate a ip to a server, 
how to not display this ip when i associate ip on new server? 

Answer 1:

You need to create a "domain" between "Server" and "IP" with cardinality "one to many" ("1:N")

So if an IP is already connected to a server and you try to connect the same IP to another server CMDBuild shows an error.

Answer 2:
At this time in your example all IP are displayed but if you try to connect twice the same IP to two servers you obtain an error.
We have already planned for a next version to display in gray color (not selectable) the rows "side N" already linked in a "1:N" domain.

Fabio