Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Entry struct depends upon Mongo implementation #14

Open
marcossegovia opened this issue Nov 26, 2016 · 0 comments
Open

Entry struct depends upon Mongo implementation #14

marcossegovia opened this issue Nov 26, 2016 · 0 comments

Comments

@marcossegovia
Copy link
Owner

Problem: The Entry Domain Entity is directly dependent on MongoDB implementation, as MongoDB needs a structure using the bson.ObjectId and the json comments added to be properly persisted.

Solution proposal: We need to split this an provide an independent Domain struct and a Persistence Struct that transform the current domain Object into the persistence MongoDB struct.
Also the other way around would be needed. From mongoDB struct to domain entity object to finally respond with the list of Domain Entries to the User.

@marcossegovia marcossegovia changed the title Entry depends upon Mongo implementation Entry struct depends upon Mongo implementation Nov 26, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant