Hello.

Question 1:
You'll just embed another document (or vertex) in the contact property.  
Are you trying to do this from the Java API?

Question 2:
Once the original database is shutdown, you can just copy the database 
folder to a new name.  Even if you decide to use the 'document' approach, 
you don't need to do anything else.  The two mix easily together as well.

Question 3:
Sure.  You could create a cluster per politician classification.  What's 
the intended purpose?  Another idea is that you could create a base 
Politician class and then create specialty derived classes that extend 
Politician.  Each derived class will use its own cluster by default.

Hope that helps.

-Colin

Colin Leister

Orient Technologies

The Company behind OrientDB


On Sunday, March 1, 2015 at 9:07:26 PM UTC-6, Kiheung Park wrote:
>
> Hi, 
>
> I want to create a database in which can hold agent's information such as 
> politician records. Firstly, I have created 'graph' based DB and named as 
> "Agent_Database."
>
> My goal is to prepare the DB Schema just like the diagram below,
>
> <https://lh5.googleusercontent.com/-P-8J16wqxh4/VPPPPkVbF2I/AAAAAAAABOE/znN5f0t8IdI/s1600/firstDesign.PNG>
> *Question 1. *
> I am having trouble with embedded type property. Like on Agent class, 
> there is a property called 'contact' that I want to use embedded structure 
> contains address and phone number and etc. 
> How can I create properties within the property? 
>
> *Question 2.*
> Just realized that document based database might be more appropriate for 
> this application. Is there are way to copy DB to DB just like a RDBMS? or 
> is there a way to rename the database name?
>
> *Question 3.*
> Is it possible to make clusters based on which group that politicians 
> belong to? Should I ALTER the politician CLASS to ADDCLUSTER after 
> inserting the records? Any suggestion?
>
> I have already searched documents from orientDB, google group and udemy 
> online course discussion board, but couldn't find any solution... 
>
> Let me know if there are easy ways to do these?
>
>
> Thank you.
>
>
> PS: I am using Studio version : 2.0 and OrientDB version : 2.0.3
>

-- 

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