Skip to content
This repository has been archived by the owner on Oct 18, 2019. It is now read-only.

Replace Document-based methods on Database class #3

Open
4 tasks
commana opened this issue Mar 11, 2015 · 0 comments
Open
4 tasks

Replace Document-based methods on Database class #3

commana opened this issue Mar 11, 2015 · 0 comments

Comments

@commana
Copy link
Collaborator

commana commented Mar 11, 2015

As part of our effort to introduce Jackson, the following methods on the Database class need to be deprecated:

  • saveDocument
  • bulkSaveDocument
  • deleteDocument
  • getDocument

Ideally, the Database should work with POJOs that are converted to JSON. For example, to save an object of type Entity, the following should transparently create a JSON representation that is written to the database:

Entity entity = ...
database.save(entity);
// entity now contains the updated _rev attribute
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant