Skip to content
This repository was archived by the owner on Jan 29, 2024. It is now read-only.
This repository was archived by the owner on Jan 29, 2024. It is now read-only.

Integration with Objectify #7

@tj-recess

Description

@tj-recess

I think we should build Doco on top of Objectify. Converting POJO to Document is necessary but converting Document back to POJO is kind of useless because we don't have all the fields in Document. On the other hand, if we integrate Doco with Objectify, we can do following:

  • Convert Ofy Entity (only) to Documents with Entity's Key<?> being the documentId.
  • Retrieve entire Entity back by just accessing the key from document (reconstruction is easier).
  • Converting various other fields to text (Ref, Set, List, etc) which are good to be searched but can't be reconstructed back into POJO. Since we're using Key to retrieve things back, just one-way conversion (from pojo to doc) is enough.
  • Less new annotations to learn if we integrate with Ofy's annotations. (e.g. @entity(enableFullTextSearch=true), etc).

Since, Ofy is used extensively already, we can hope for much higher adoption (and contribution) which will make doco even better.

Let me know your thoughts on this.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions