Hi,

     I am using document database in java, i have a N to 1 relationship 
like 

city.createProperty("city", OType.LINK, country);

where country is ODocument class, once again city is LINK type property of 
address. In this i want city and country should be unique. i.e there should 
be only one record for "Rome", "Turin" under City class and one record for 
"Italy" under Country class.

How can we do this, is it best to have like this. What is pros and cons in 
this approach.

Prasad

-- 

--- 
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.

Reply via email to