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

Effective public view of a database table #27

Open
dilijev opened this issue Sep 23, 2014 · 0 comments
Open

Effective public view of a database table #27

dilijev opened this issue Sep 23, 2014 · 0 comments
Labels
Milestone

Comments

@dilijev
Copy link
Collaborator

dilijev commented Sep 23, 2014

Often in Java projects, fields of interest are declared either as public, in which case there are rarely getX and setX methods, since the field can be set directly; or as private, with public getX and setX if some view of that field is intended to be viewed publicly.

In the case that the source package is not annotated to let us know what to index on, we should assume indices on fields which match these patterns, and behave accordingly.

For finer-grained control, sometimes get* methods look as if they are accessing fields which don't actually have a corresponding setter. In this case, we should expose annotations to let us know which methods will affect the values returned by those methods.

For now we should only assume that getX and setX correspond to a private field x if that field is named exactly x (or perhaps _x, or some other naming variant), and it is clear we know what is happening.

We should be careful to avoid incorrect assumptions in this case, but we should start moving toward making MercuryDB compatible with libraries we don't maintain, as much as possible.

@dilijev dilijev added this to the v0.6 milestone Sep 23, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant