Hi Daniel,

OrientDB can work in schemaless or schemaful mode, so different records can
have different sets of properties by design.
How are you manipulating your data? There are many ways to do this:
- In SQL you can just use an UPDATE statement:
UPDATE Person set myAttribute = value where <some conditions here>
or
UPDATE #12:10 set myAttribute = value  ///where #12:10 is the RID of a
single vertex

in Java you can just retrieve the vertex/vertices and then do:

vertex.setProperty("propertyName", value);
graph.commit();

If you want to execute SQL updates in Java you have to use graph.commad()
API:

graph.command(new OCommandSQL(<your update statement here>)).execute();

I hope it helps

Luigi


2015-07-23 18:11 GMT+02:00 daniel08 <[email protected]>:

> Is it possible to add property to a particular vertex?
> Example, I have 10 vertex of type Person and would like to add role
> property to just 4.
> Also, can this be done using java api?
>
> --
>
> ---
> 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.
>

-- 

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