On 11/7/12 1:54 PM, "Nune Isabekyan" <[email protected]> wrote:

>Hi,
>
>I have been looking into the code from mongoDB integration and I have a
>question whether it was an intentional decision not to use @Document
>annotation for mapping with Collection...Correct me if I am wrong you
>decided to keep the className in the collection and serialize/deserialize
>that manually...I am just wondering why...

The class name is an attribute of the document and is used for
deserialization.  We are just using a static string to specify the
collection.  The choice to not use the @Document annotation was made
because there are a few instances where we just use the Rave impl classes,
which are not in the Rave mongodb project.

As far as I am aware, the annotation only helps specify the collection to
save it in.  Is there another benefit?

>
>Thanks in advance.
>
>Regards,
>Nune

Reply via email to