[orientdb] Re: Can't create edge within a transaction that creates a document

2016-11-16 Thread Borov
Any ideas anyone? On Monday, November 14, 2016 at 1:25:05 PM UTC-8, Borov wrote: > > I'm trying run a transaction which will perform few operations using SQL. > First it will create a new document, then it will update a status of > another document and third, it will create an edge between an

Re: [orientdb] I am getting older version of Vertex in OrientDb Graph database

2016-11-16 Thread Luigi Dell'Aquila
Hi Gopinath, This issue could be due to some caching mechanisms. Could you please add a vertex.getRecord().reload() after fetching the record? If it solves the problem, then it's likely a cache problem Thanks Luigi 2016-11-16 13:53 GMT+01:00 : > Hi, > I have

[orientdb] I am getting older version of Vertex in OrientDb Graph database

2016-11-16 Thread gopinath . chilukuri
Hi, I have some issue with Orient Graph database. I am getting older version of Vertex when I am fetching Vertex from graph database, But is not for all the time out 10 I am getting this issue for 2 times. Sometimes It is continuesly happening. Why it is happening.? I am using commit()

Re: [orientdb] Re: creating records with rid #-1:-2 orientdb graph database?

2016-11-16 Thread gopinath . chilukuri
Hi Luigi, 1. Yes I am using for commit() for notTx() and Tx() methods. Sometimes I am getting error if i did not put this statement. That is why I added this statement. my Question : Is there any problem with using this commit() statement ? 2. I am creating schema (Only classanem and with

Re: [orientdb] HELP to Query with json attributes

2016-11-16 Thread Academia Learning Centro de inglés y de formación
I just saw that my doubt is when there is more than one level for example: select * from CompositeVersion where value.name = "Roberto" { "nombre": "Roberto", "edad": 28 } It´s ok but: select * from CompositeVersion where value.name.en = "Roberto" { "nombre": { "es": "Roberto",

Re: [orientdb] HELP to Query with json attributes

2016-11-16 Thread Academia Learning Centro de inglés y de formación
Many thanks luigi I have already found because, in CompositeVersion is declared as string and in Person as embedded That's why i did not work El miércoles, 16 de noviembre de 2016, 11:02:39 (UTC+1), Luigi Dell'Aquila escribió: > > Hi > > That's the right syntax, it's supposed to work fine. >

[orientdb] Re: HELP to Query with json attributes

2016-11-16 Thread Academia Learning Centro de inglés y de formación
I have created another vertex of the Person class, with the same json value and in this case this query if that works Select * from Person where value.name.value = 'Laboratory report' But with CompositeVersion no working, i don´t understand select * from CompositeVersion where

Re: [orientdb] Edge vs Link, question and help (Example Inside)

2016-11-16 Thread Academia Learning Centro de inglés y de formación
Each EHR will have an EHR_status (without properties) but I do not know if it should be an edge or link El miércoles, 16 de noviembre de 2016, 11:30:20 (UTC+1), Luigi Dell'Aquila escribió: > > Hi, > > What is EHR_Status? Is it a link property? > In general the answer is yes, you can mix

Re: [orientdb] Edge vs Link, question and help (Example Inside)

2016-11-16 Thread Luigi Dell'Aquila
Hi, What is EHR_Status? Is it a link property? In general the answer is yes, you can mix document and graph models and you should have no problems with this, so I suppose there is something else... Thanks Luigi 2016-11-16 11:10 GMT+01:00 Academia Learning Centro de inglés y de formación

Re: [orientdb] HELP to Query with json attributes

2016-11-16 Thread Academia Learning Centro de inglés y de formación
Hi Luigi, I attach an export db and an image of the model. Thanks!! El miércoles, 16 de noviembre de 2016, 11:02:39 (UTC+1), Luigi Dell'Aquila escribió: > > Hi > > That's the right syntax, it's supposed to work fine. > Could you please post a simple script to create a db that reproduces the >

Re: [orientdb] HELP to Query with json attributes

2016-11-16 Thread Luigi Dell'Aquila
Hi That's the right syntax, it's supposed to work fine. Could you please post a simple script to create a db that reproduces the problem? Thanks Luigi 2016-11-16 10:58 GMT+01:00 Academia Learning Centro de inglés y de formación : > Hi, > > I have this vertex of

[orientdb] Re: Is it possible to get records without meta-information?

2016-11-16 Thread Academia Learning Centro de inglés y de formación
HELP El lunes, 14 de noviembre de 2016, 14:27:27 (UTC+1), Academia Learning Centro de inglés y de formación escribió: > > Can I get records without this parameters? > > "@type": "d", > "@rid": "#21:2", > "@version": 1, > "@class": "EHR", > > Thanks > -- --- You received this message because

[orientdb] HELP to Query with json attributes

2016-11-16 Thread Academia Learning Centro de inglés y de formación
Hi, I have this vertex of class CompositeVersion, How can I get all the vertices whose value has the property name equal to Laboratory report? I had tried with select from CompositeVersion where value.name.value = 'Laboratory report' but not working select from CompositeVersion

Re: [orientdb] Re: creating records with rid #-1:-2 orientdb graph database?

2016-11-16 Thread Luigi Dell'Aquila
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? -