Hi ,
I have strange problem, When I am creating a vertex with nontrasactional
graph object the record is creating with record id i.e rid is *#-1:-2 , *and
creating an edge with same object is resulting with rid is *#-1:-3 . *
I am creating like this code,
OrientVertex vertexObject = graph.addVertex("class:"+ClassProperties.
VERTEXCLASSNAME);
if(vertexObject == null){
error.put(Constants.ERROR_KEY, "Bad request.");
return new ResponseEntity<String>(error.toString(), HttpStatus.BAD_REQUEST);
}
vertexObject.setProperty(ClassProperties.PROPERTY_ID,
UUID.randomUUID().toString());
vertexObject.setProperty(ClassProperties.PROPERTY_NAME, request
.getString(ClassProperties. PROPERTY_NAME));
vertexObject.setProperty(ClassProperties.PROPERTY_DESCRIPTION, request
.getString(ClassProperties. PROPERTY_DESCRIPTION));
vertexObject.setProperty(ClassProperties.PROPERTY_SKU,
"SKU-"+UUID.randomUUID().toString().substring(1,
7));
graph.commit();
*and in finally bock*
finally {
if(graph != null)
graph.shutdown();
}
*and result is getting like this*
1. @class : "className"
2. @fieldTypes:"value=d,created_date=t,updated_date=t,in_HasReward=g"
3. @rid:"#-1:-2"
4. @type:"d"
5. @version:0
6. created_date:"2016-11-14 01:37:00"
7. ... properties what i am trying to insert.
8.
9.
10. I am unable to find the what was the problem. even sometimes
creating successfully in mentioned clusters.?
11. I have specified 8 clusters to this class by my java program (while
designing vertexType), is that the problem ?
12.
13.
14.
--
---
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.