Hi Krishna,
In the graph world, you'd create an edge between class A and class B
(assuming both are vertices), and label that edge "id".
It's unclear if you're looking for a way to make your classes persistent in
the database.
Thanks,
-Colin
On Tuesday, April 14, 2015 at 7:18:18 AM UTC-5, Krishna Kumar wrote:
>
> hi,
>
> I have two classes *class A,class B*.....
>
> class A{
> int id,
> string name,
> string gender
> }
> class B{
> int ref_id,
> int salary,
> }
>
> is there any way two relate these two classes through id? if possible how
> can i retrieve related data using java.
>
>
> please provide some sample code to do this!
>
>
> Thanx.
>
--
---
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.