Ok, I just created the properties from my Map :) duh!

On Monday, 24 March 2014 11:41:46 UTC, [email protected] wrote:
>
> Hi,
>
> I'm adding a vertex with graph.addTemporaryVertex(<type>,<fields> ...). 
> -> addTemporaryVertex(java.lang.String iClassName, java.lang.Object... prop)
>
> If the Vertex type requires a field it's validated when created, not when 
> saved.
>
> This means that this is out of the question:
>
>    1. newVertex = graph.addTemporaryVertex("SomeClass","field"="value");
>    2. newVertex.setProperty("required_field","some value"
>    
> This is a generic code I'm using and I have a Map containing "additional 
> field values".
> If there is a way to use a Map for properties? 
> addTemporaryVertex("SomeClass", (Map) someMapWithProperties) -> 
> (java.lang.String iClassName, java.lang.Object... prop)
>
> Any pointers?
>
> Regards,
>  -Stefán
>
>
>

-- 

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