Hi Galina,
Sure you associate document with class during document save.
Like this
https://github.com/orientechnologies/orientdb/wiki/Document-Database#introduction.

I think you wish to create document from JSON it can be done using
following code:

ODocument doc = new ODocument("Person");

document.fromJSON("jsonString");

document.save();



On Tue, Apr 1, 2014 at 8:33 PM, galina <[email protected]> wrote:

> I came across this link and wondering if someone could explain  it to me:
>
> https://github.com/orientechnologies/orientdb/wiki/Time-series-use-case
>
> I am new to OrientDB and NoSQL in general.  "Time series" post is talking
> about generating JSON Log record where date stored as "date" :
> 12293289328932.
> Then you created classes for Year, Month, Day,... How that record got
> associated to classes? Do you  have more code samples? I understood queries
> very well, but missed data-to-class association part. Maybe you can direct
> me to another link, which explains that?
>
> --
>
> ---
> 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.
>



-- 
Best regards,
Andrey Lomakin.

Orient Technologies
the Company behind OrientDB

-- 

--- 
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