-
Notifications
You must be signed in to change notification settings - Fork 566
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
DB Client examples #1329
DB Client examples #1329
Conversation
I don't like many-to-many. For a simple demo we should stick with one-to-many relationship. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The current DB example should be left to demonstrate similiarity when using JDBC and mongo.
Also create a separate example for JDBC and for Mongo that will show more than one table that can be used by customers to "bootstrap" their microservice.
...bclient/common/src/main/java/io/helidon/examples/dbclient/common/AbstractPokemonService.java
Outdated
Show resolved
Hide resolved
examples/dbclient/jdbc/src/main/java/io/helidon/examples/dbclient/jdbc/PokemonService.java
Outdated
Show resolved
Hide resolved
examples/dbclient/jdbc/src/main/java/io/helidon/examples/dbclient/jdbc/PokemonService.java
Outdated
Show resolved
Hide resolved
examples/dbclient/jdbc/src/main/java/io/helidon/examples/dbclient/jdbc/PokemonService.java
Outdated
Show resolved
Hide resolved
examples/dbclient/mongodb/src/main/java/io/helidon/examples/dbclient/mongo/PokemonService.java
Outdated
Show resolved
Hide resolved
@m0mus Bad news is, that I've already done 90% of the demo and it works for both Mongo and JDBC. But I can create another more simple sample with following 1:N schema:
And we can make following services:
|
@Tomas-Kraus I can only repeat that many-to-many sample is too complex for a simple demo. A new sample you are talking about technically contains 3 tables:
where |
Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
- JDBC module is finished - MongoDB needs DB model update Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
JDBC Sample was rewritten to match @m0mus requirements. MongoDB is still in TODO list. |
Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
...dbclient/pokemons/src/main/java/io/helidon/examples/dbclient/pokemons/jdbc/InitializeDb.java
Outdated
Show resolved
Hide resolved
...client/pokemons/src/main/java/io/helidon/examples/dbclient/pokemons/jdbc/mapper/Pokemon.java
Outdated
Show resolved
Hide resolved
Modified README content is here: https://github.com/Tomas-Kraus/helidon/tree/master/examples/dbclient/pokemons |
Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
@Tomas-Kraus If review comments are addressed please resolve those conversations. It's difficult to review. |
Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
DB Model:
Use-cases:
Readme