-
Notifications
You must be signed in to change notification settings - Fork 132
Add entity-centric insert/update/delete methods to DatabaseClient #220
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
Labels
type: enhancement
A general enhancement
Milestone
Comments
mp911de
added a commit
that referenced
this issue
Jan 24, 2020
We now provide a Template API that exposes entity-centric methods. It complements DatabaseClient's simple object mapper methods.
mp911de
added a commit
that referenced
this issue
Jan 24, 2020
Use limit/offset instead of Page and accept Expression objects to declare a select list.
mp911de
added a commit
that referenced
this issue
Jan 24, 2020
mp911de
added a commit
that referenced
this issue
Jan 24, 2020
mp911de
added a commit
that referenced
this issue
Feb 12, 2020
We now provide a Template API that exposes entity-centric methods. It complements DatabaseClient's simple object mapper methods.
mp911de
added a commit
that referenced
this issue
Feb 12, 2020
Use limit/offset instead of Page and accept Expression objects to declare a select list.
mp911de
added a commit
that referenced
this issue
Feb 12, 2020
mp911de
added a commit
that referenced
this issue
Feb 12, 2020
mp911de
added a commit
that referenced
this issue
Feb 12, 2020
mp911de
added a commit
that referenced
this issue
Feb 12, 2020
mp911de
added a commit
that referenced
this issue
Feb 12, 2020
Use limit/offset instead of Page and accept Expression objects to declare a select list. Use SqlIdentifier in Update, Query, Criteria and fluent API.
schauder
added a commit
that referenced
this issue
Feb 12, 2020
Reverted removal of null check that is marked as superfluous and adjusted nullability annotations instead.
mp911de
added a commit
that referenced
this issue
Feb 12, 2020
We now provide a Template API that exposes entity-centric methods. It complements DatabaseClient's simple object mapper methods. Original pull request: #287.
mp911de
added a commit
that referenced
this issue
Feb 12, 2020
Use limit/offset instead of Page and accept Expression objects to declare a select list. Use SqlIdentifier in Update, Query, Criteria and fluent API. Original pull request: #287.
mp911de
pushed a commit
that referenced
this issue
Feb 12, 2020
Formatting. Fix warnings. JavaDoc. Adjusted nullability annotations. Original pull request: #287.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
DatabaseClient
currently exposes methods such asinsert().into(Person.class).using(new Person())
returingMap<String, Object>
instead of entities. It would make sense to have an API that returns entities for an entity-centric approach.DatabaseClient
could be used fully for entity-centric and SQL-centric use-cases. Entity-centric use-cases require the use of repositories.The entity-centric approach could facilitate the usage of lifecycle callbacks and returning the modified entity.
The text was updated successfully, but these errors were encountered: