Hi Gopinath, This is a very basic operation and your code seems to be correct, so I suspect there is a problem somewhere else. Just a couple of questions: - are you always using NoTx? In this case, why are you invoking graph.commit()? there is no need for that. - how do you create your schema? - do you have a self-contained test case that reproduces the problem? It will make it much easier to diagnose
Thanks Luigi 2016-11-16 8:37 GMT+01:00 <[email protected]>: > That's only the logical code. > Only i missed return statement after the commit() statement. Here I am > pasting return statement. > > vertexObject.commit(); > return new ResponseEntity<String>(vertexObject.getRecord().toJSON(), > HttpStatus.OK); > > I have small doubt on creating of GraphFactory , Please suggest is this > the right way of creating graphFactory > Here the code I am posting. > > and for each controller I am calling factory.getNoTxGraph() method > > public class FactoryService { > > static Logger logger = Logger.getLogger(FactoryService.class); > > public static OrientGraphFactory factory; > > static { > > logger.info("factory creating"); > > factory = new OrientGraphFactory(Constants.DATABASE_URL).setupPool(10, > 40); > > } > > public OrientGraphFactory getGraphFactory(){ > > if(factory == null){ > > factory = new OrientGraphFactory(Constants.DATABASE_URL).setupPool(10, > 40); > > } > > return factory; > > } > > public static OrientBaseGraph getNoTxGraph(){ > > return factory.getNoTx(); > > } > > public static OrientBaseGraph getTxGraph(){ > > return factory.getTx(); > > } > > > } > > > Thank you > Gopinath Chilukuri > [email protected] > > > On Tuesday, November 15, 2016 at 7:14:33 PM UTC+5:30, > [email protected] wrote: >> >> Could you post more code ? >> >> Thanks >> > -- > > --- > 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.
