Yes I guess I am in the middle of a transaction, so whenever I create a Car 
i want to automatically create Wheel vertex and link them to Car, then 
whenever a Wheel is created (either independently or because a car was 
created) i want to create Tyre vertex and link them to Wheel

public void onRecordAfterCreate(ODocument iDocument)
    {
        
        if (iDocument.getClassName().equals("car"))
        {
            System.out.println("------------ CAR HOOK FIRED -------------");
            createAndLinkWheels();
        }
        
        else if (iDocument.getClassName().equals("wheel"))
        {
            System.out.println("------------ WHEEL HOOK FIRED 
-------------");
            createAndLinkTyres();
        }
    }

-- 

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