Hi Stefan,
you can do it with Standard Blueprints API:
OrientEdge edge = some_orient_vertex.addEdge(<REL_TYPE>, in_vertex);
edge.setProperty( "name", "Stefan" );
Or for multiple properties:
edge.setProperties( "name", "Stefan", "tag", "orientdb-user" );
Or even:
Map<String,Object> properties = new HashMap<String,Object();
properties.put("name", "Stefan");
properties.put("tag", "orientdb-user");
edge.setProperties( properties );
Lvc@
On 19 April 2014 13:32, <[email protected]> wrote:
> Hi,
>
> Can you please show me the preferred way to add Edge properties in the
> following scenario:
>
> - some_orient_vertex.addEdge(<REL_TYPE>, in_vertex)
>
> I have a required attribute for the edge type and need to add it there but
> the only method signature I find that comes close is:
>
> - String label, OrientVertex inVertex, Object[] fields
>
> It looks from the source code as if I can populate a Object array with
> field_name + value pairs but that seems like a really bad interface for
> something this fundamental.
>
> Regards,
> Stefan
>
> --
>
> ---
> 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.