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

Integration with Objectify #7

Open
tj-recess opened this issue Sep 21, 2014 · 6 comments
Open

Integration with Objectify #7

tj-recess opened this issue Sep 21, 2014 · 6 comments

Comments

@tj-recess
Copy link
Collaborator

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.

@kishaningithub
Copy link

Kindly integrate with objectify

@marcosvidolin
Copy link
Owner

I think it's a really great idea!
The only fear is to coupling the doco with Objectify.

@tj-recess
Copy link
Collaborator Author

Objectify is now on Google’s official documentation (https://cloud.google.com/appengine/docs/java/gettingstarted/usingdatastore#setting_up_objectify)
I don’t think there is anything to fear about.

On Jul 10, 2015, at 6:56 AM, Marcos Alexandre Vidolin de Lima notifications@github.com wrote:

I think it's a really great idea!
The only fear is to coupling the doco with Objectify.


Reply to this email directly or view it on GitHub.

@marcosvidolin
Copy link
Owner

The only question would be, Doco would only be used in conjunction with Objectify (Datastore)? My project can use another database like MySQL.

@tj-recess
Copy link
Collaborator Author

That’s a good point. I’d not overhaul doco completely.
However, since objectify is already so popular, creating another project ‘docofy’ (doco + ofy) would attract more audience as compared to doco acting independently.

On Jul 10, 2015, at 7:11 AM, Marcos Alexandre Vidolin de Lima notifications@github.com wrote:

The only question would be, Doco would only be used in conjunction with Objectify (Datastore)? My project can use another database like MySQL.


Reply to this email directly or view it on GitHub.

@marcosvidolin
Copy link
Owner

This seems like a good idea. Doco being the core of Docofy (great name). Perfect!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants