You may want to check the DATETIMEFORMAT for your database (use the 'info' 
command from console) -- if the DATETIMEFORMAT (see Java SimpleDateFormat 
for details) does not match your date format, you'll see this message.  And 
the version of Java matters -- Java 7 has a few conversion patterns than 
Java 6.

- Craig -

On Wednesday, October 29, 2014 8:32:23 AM UTC-4, Gregor Frey wrote:
>
> 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.

Reply via email to