Hi Luca,

the signature you provided, now is removed from class OrientBaseGraph.java 
in package 
        
com<https://github.com/tinkerpop/blueprints/tree/master/blueprints-orient-graph/src/main/java/com>/
 
tinkerpop<https://github.com/tinkerpop/blueprints/tree/master/blueprints-orient-graph/src/main/java/com/tinkerpop>/
 
blueprints<https://github.com/tinkerpop/blueprints/tree/master/blueprints-orient-graph/src/main/java/com/tinkerpop/blueprints>/
 
impls<https://github.com/tinkerpop/blueprints/tree/master/blueprints-orient-graph/src/main/java/com/tinkerpop/blueprints/impls>/
 
orient<https://github.com/tinkerpop/blueprints/tree/master/blueprints-orient-graph/src/main/java/com/tinkerpop/blueprints/impls/orient>/
 

what's happened?

thank you for your help.


On Friday, August 2, 2013 8:01:18 PM UTC+4:30, Lvc@ wrote:
>
> Hi Alessandro,
> this is the signature of addEdge():
>
> public OrientEdge addEdge(String label, final OrientVertex inVertex, 
> finalString iClassName, 
> final String iClusterName, final Object... fields) 
>
> So I think it should be:
>
> *OrientEdge o1 = graph.addEdge("class:Owns", d1, null, 
> null,"startDate",dateS);*
>
> Assuming that d1 is the target vertex.
>
> Lvc@
>
>
>
> On 2 August 2013 17:17, Alessandro Remartini 
> <[email protected]<javascript:>
> > wrote:
>
>> Dear Luca,
>>
>> thanks for your prompt reply.
>>
>> I have seen the documentation but when I try the code:
>>
>> graph = new OrientGraph("remote:localhost/HRGTest_1","admin","admin");
>> ...
>> ...
>> ...
>> *OrientEdge o1 = graph.addEdge("class:Owns", e1, d1, 
>> "owns","startDate",dateS); *
>>
>> I have the following compile-time error: 
>>
>>
>>
>>
>>
>>
>>
>> *error: method addEdge in class OrientBaseGraph cannot be applied to 
>> given types; OrientEdge o1 = graph.addEdge("class:Owns", e1, d1, 
>> "owns","startDate",dateS);                        required: 
>> Object,Vertex,Vertex,String  found: 
>> String,OrientVertex,OrientVertex,String,String,Date  reason: actual and 
>> formal argument lists differ in length*Thanks
>>
>> Alessandro
>>
>> Il giorno venerdì 2 agosto 2013 16:59:55 UTC+2, Alessandro Remartini ha 
>> scritto:
>>
>>> Dear all,
>>>
>>> I am using Thinkerpop Bluprints with OrientDB 1.5.0.
>>>
>>> I defined an edge as following:
>>>
>>>
>>>
>>>
>>>
>>> *OClass ownE = graph.createEdgeType("Owns");OProperty startDateP = 
>>> ownE.createProperty("startDate", OType.DATETIME); 
>>> startDateP.setMandatory(true);OProperty endDateP = 
>>> ownE.createProperty("endDate", 
>>> OType.DATETIME);endDateP.setMandatory(false);*
>>>
>>> Then I add an edge as following:
>>>
>>>
>>>
>>>
>>> *OrientEdge o1 = graph.addEdge("class:Owns", e1, d1, "owns");Date 
>>> dateS;dateS = dateF.parse("2013-06-05 
>>> 00:00:00:000");o1.setProperty("startDate", dateS);*
>>>
>>> an exception is thrown after addEdge method invocation, because the 
>>> property startDate is mandatory.
>>>
>>> How do I add an edge with mandatory property ? (for vertex is it 
>>> possible to specify the mandatory property during the creation addVertex...)
>>>
>>> Thanks for your help
>>>
>>> Regards
>>>
>>> Alessandro
>>>
>>  -- 
>>  
>> --- 
>> 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] <javascript:>.
>> For more options, visit https://groups.google.com/groups/opt_out.
>>  
>>  
>>
>
>

-- 

--- 
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/groups/opt_out.

Reply via email to