try this changes:

1) in the class Employee, change the departement  property as: LINKSET

2) in your function javascript, delete "db.save(employee);" and add 
"g.command( "sql", " insert into Employee(name,department) values 
('John2',[#2:33]) ");"



*example:var g= orient.getGraph();  var employee = {'@class': 'Employee', 
name: 'John', department: {'@class': 'Department', '@rid': 
'#2:33'}};g.command( "sql", " insert into Employee(name,department) values 
('John2',[#2:33]) ");*

it should work...

regards,
Savio L.



-- 

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