Hi

I am trying to save a POJO class object into database but failed to do it.
Could anyone tell me, How to do that? Please find my code below:

*ODatabaseDocumentTx db = new OPartitionedDatabasePoolFactory().acquire()*

*User user = new User();*

*user.setFirstName("Chaitanya Reddy").setLastName("Tatipart")*
*.setContacts(Arrays.asList(c1))**.setAddresses(Arrays.asList(addr));*

db.save((ORecord)user);

I am getting ORecord related exception.

Thank you

Chaitanya

-- 

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