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

Add entity-centric insert/update/delete methods to DatabaseClient #220

Closed
mp911de opened this issue Oct 21, 2019 · 0 comments
Closed

Add entity-centric insert/update/delete methods to DatabaseClient #220

mp911de opened this issue Oct 21, 2019 · 0 comments
Labels
type: enhancement A general enhancement

Comments

@mp911de
Copy link
Member

mp911de commented Oct 21, 2019

DatabaseClient currently exposes methods such as insert().into(Person.class).using(new Person()) returing Map<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.

@mp911de mp911de added the type: enhancement A general enhancement label Oct 21, 2019
@mp911de mp911de added this to the 1.1 M3 (Neumann) milestone Jan 24, 2020
mp911de added a commit that referenced this issue Jan 24, 2020
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 Feb 12, 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
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
Formatting.
Fix warnings.
JavaDoc.
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
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.

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.
mp911de added a commit that referenced this issue Feb 12, 2020
Update what's new section.
@mp911de mp911de closed this as completed Feb 12, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: enhancement A general enhancement
Projects
None yet
Development

No branches or pull requests

1 participant