[orientdb] Why can't I delete the edge?

2015-04-19 Thread Esen Sagynov
delete edge Permissions where @rid = '#15:1' Why doesn't it work? I can't delete this edge in the Studio. It shows the following error: java.lang.ClassCastException: java.lang.String cannot be cast to com.orientechnologies.orient.core.db.record.OIdentifiable I can't do either: delete edge

[orientdb] OCommandSQLParsingException for valid json

2015-04-19 Thread satish b
Hello I'm getting an OCommandSQLParsingException: Error on parsing command at position #0: Invalid keyword: TYPE:PERSON I have tried with both 2.1-rc1 and 2.0.7 Community Edition releases. Json: {Salary:1500.0,Type:Person,Address:[{Zip:JX2 MSX,Type:Home,Street1:13 Marge

[orientdb] Returning a tree structure

2015-04-19 Thread cloverethos
Hi all, Suppose that I have a tree like this: - d | - b || a--- - e | - c - f when I do select out(), out().out() from a I would get something like [a,[b,c],[d,e,f]] how can I get something like {a:[b:[d,e],c:[f]} Thanks,

[orientdb] A tricky question about dates

2015-04-19 Thread 张轩
Hey all, So i'm trying to build a little plane schedule project that use the edge to store a connection, the problem thought I'm facing right now is that a plane connection may be available *on everyday* OR *every monday tuesday* OR * only on a certain time period of time of the year* OR

[orientdb] Re: Why can't I delete the edge?

2015-04-19 Thread nagaraja sosale ramaswamy
this ought to work: delete edge Permissions where @rid = #15:1 the record id should not be enclosed in quotes. explains why you are getting a class cast exception. On Sunday, April 19, 2015 at 2:54:05 PM UTC+5:30, Esen Sagynov wrote: delete edge Permissions where @rid = '#15:1' Why

[orientdb] How to 'group by' on only DATE (without the time)

2015-04-19 Thread Kishy Kumar
I have a columns timestamp where I save the the datetime in this '-MM-dd'T'HH:mm:ss.SSS'-0700' format. It looks like this: +-+--+ # |@RID |sysdate |timestamp +-+--+ 0

Re: [orientdb] Re: Registered class is not registered?

2015-04-19 Thread Paul Scott
Hi Colin, Sorry for taking so long to get back to you, but I somehow managed to break my foot over the weekend! Anyway, the full function is as follows: public PageableListPerson getByPage(int pageNo, int pageSize) {

[orientdb] Orient token-sharing best practices

2015-04-19 Thread David Carr
I have read the OrientDB documentation on network binary protocol tokens but it is unclear to what extent tokens can be shared in a typical web application. Imagine the following scenario: - One central OrientDB database configured with a global username/password pair for the web