I have a document defined by a class which contains an embedded list of
documents defined by another class with an attribute of type datetime. This
is the definition:
create property sattime.employees string
create property sattime.sat integer
create property sattime.time datetime
create property statistics.sattime embeddedlist sattime
Now I want to add new sattime using this statement:
update statistics add sattime = [{'employees':'Employees', 'sat':7, 'time':
'2014-10-10
00:00:00', '@type':'d', '@class':'sattime'}];
In principle this should work. I tested it with a string instead of a
datetime in the property definition. But with the date I get the error
Error: java.lang.ClassCastException: java.lang.String cannot be cast to java
.util.Date
Is there any way to pass a date from the console? Is there any other way to
add a sattime document to the statistics document?
--
---
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.