[orientdb] Re: What is the best way to retrieve multiple connected vertexes as a nested object?

2015-09-06 Thread user . work111
Hi Eric, Try this: traverse out("hasEdge") as FirstEdge from #12:0 strategy DEPTH_FIRST Regards, Michela -- --- 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 ori

[orientdb] function date in insert sql doesn't work in 2.1.1

2015-09-06 Thread alexander anguiano
I'm trying to move form 2.0.x to 2.1.1 and i have this insert insert into Asset (modifiedTime, guid, hostname, majorType, version, importance, addresses, attributes, tags) values ( date() ,? ,? ,? ,? ,?,?,?,?) This works fine in 2.0.2 when i execute this, it gets this error ! com.orientechno

[orientdb] Re: Create Edge Command Bug

2015-09-06 Thread kurtuluş yılmaz
Hi all; I understand the process. I use lightweight edges so orientDb just creates links and it puts edges to defaullt.cpm. Case closed. 4 Eylül 2015 Cuma 17:30:57 UTC+3 tarihinde kurtuluş yılmaz yazdı: > > Hi all; > I created Edge type ipUsedBy then I create some edges type of ipUsedBy > but

[orientdb] Re: Create Edge Command Bug

2015-09-06 Thread kurtuluş yılmaz
It looks like it writes this edges to 'default' but I don't know why.When I use create Edge record size of default.cpm and default.pcl is increasing. 4 Eylül 2015 Cuma 17:30:57 UTC+3 tarihinde kurtuluş yılmaz yazdı: > > Hi all; > I created Edge type ipUsedBy then I create some edges type of ipUs

Re: [orientdb] Re: How to query an embedded DB?

2015-09-06 Thread Marvin Froeder
Ok, that was the problem. I though was the same. Thanks man On Sun, Sep 6, 2015 at 10:27 PM, xvik wrote: > According to your gist, you create embedded server with root/1234 user. > But its a server user! You can't use this user to connect to database! > To access your just created test database

Re: [orientdb] Re: How to query an embedded DB?

2015-09-06 Thread xvik
According to your gist, you create embedded server with root/1234 user. But its a server user! You can't use this user to connect to database! To access your just created test database you need to use default admin/admin user. воскресенье, 6 сентября 2015 г., 16:17:57 UTC+6 пользователь Marvin Fr

Re: [orientdb] Re: How to query an embedded DB?

2015-09-06 Thread Marvin Froeder
Sorry, mean to say root/1234 https://gist.github.com/velo/78b835b18d394b103198#file-embeddedorientdbrule-java-L42 https://gist.github.com/velo/78b835b18d394b103198#file-embeddedorientdbrule-java-L90 And on the http request I use Basic cm9vdDoxMjM0 (which is also root:1234 and works like a charm)

Re: [orientdb] Re: How to query an embedded DB?

2015-09-06 Thread xvik
But in the first post you are using "root/1234" and not "admin/1234". In any case error is pretty clear: user credentials are not good. And one more moment: please check that server.getStorageUrl() returns remote url. I briefly look the code and most likely it will return plocal url, which is no

Re: [orientdb] Re: How to query an embedded DB?

2015-09-06 Thread Marvin Froeder
What I'm trying to create is a junit rule, this is the initial effort for ti https://gist.github.com/velo/78b835b18d394b103198 On Sun, Sep 6, 2015 at 10:08 PM, Marvin Froeder wrote: > On my tests I need to access document API over HTTP. > > Now I just wanna assert if all is fine making some quer

Re: [orientdb] Re: How to query an embedded DB?

2015-09-06 Thread Marvin Froeder
On my tests I need to access document API over HTTP. Now I just wanna assert if all is fine making some queries.. That is why I instantiate a server. admin/1234 is the user I set for my tests it work like a charm for http. Any other idea? On Sun, Sep 6, 2015 at 7:48 PM, xvik wrote: > By

[orientdb] Re: How to query an embedded DB?

2015-09-06 Thread xvik
By the way, you don't need the embedded server for unit tests: you can simply create new in-memory db and work with it ODatabaseDocumentTx db = new ODatabaseDocumentTx("memory:test"); db.create(); db.open("admin", "admin"); The behavior of in-memory database is the same as remote connection in m

[orientdb] Re: How to query an embedded DB?

2015-09-06 Thread xvik
I suppose you are trying to connect with user from server configuration, but server users and database users are different. Try admin/admin - the default user created for each new database. http://orientdb.com/docs/last/Database-Security.html#users воскресенье, 6 сентября 2015 г., 10:16:21 UTC+6