Announcement Announcement Module
Collapse
No announcement yet.
Using SpringData-MongoDB without annotations Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Using SpringData-MongoDB without annotations

    Hello,
    I would like to use SpringData with MongoDB in a mode that:
    • does not use annotations in the Java class file
    • has getter/setter methods to access members, but no member fields
    All the member variables are stored in a single hashmap (not as individual members).

    I have my own (internal) metadata representation, which I would like to use explicitly - instead of using MongoMappingContext, which assumes annotations. The main page of the project states that the package supports:

    Annotation based mapping metadata but extensible to support other metadata formats

    I did try using my own derivations of AbstractMappingContext, BasicPersistentEntity and AbstractPersistentProperty. However, the createPersistentProperty() call on MappingContext seems to REQUIRE a java Field, which my class does not have.

    If someone can point me in the right direction, that would be greatly appreciated.

    Regards and thanks,
    aiylam_s
Working...
X