-
Notifications
You must be signed in to change notification settings - Fork 16
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
allow storing map[string]interface{} #105
Comments
There are some challenges/design decisions related to handling maps. Some of them. 1. Go doesn't allow comparing maps to each other. We need comparison (to e.g. find the value cached in session). Solution: Similarly, a 2. What should be the collection/id for maps when the user doesn't specify id explicitly? For structs, we use the name of the struct. We could use "maps" for the name of the collection. Or require the user to always provide it. TODO: check what Java does Alternatively, we could make both 3. Should map returned by 4. What should 5. Should we set "ID" key when storing? TODO: check what Java does. Places in code that need to be scrutinized: go<->json conversions (entityToJSON, treeToValue etc.), tryGetIDFromInstance(). |
And all other operations on that type.
The text was updated successfully, but these errors were encountered: