Closed thundergolfer closed 4 years ago
New models user and tag, and bridge table user_book_tag allow for expressing the following queries
user
tag
user_book_tag
the tags are relations with books, and all that exist now are READ, CURRENTLY_READING, and WANT_TO_READ.
READ
CURRENTLY_READING
WANT_TO_READ
You can test it out with:
bazel run //store-api/src/main/java/com/book/store/api:app and then
bazel run //store-api/src/main/java/com/book/store/api:app
⚠️ Note: The DB has to be created first, that's a gotcha. ⚠️ Note2: I'm a newbie with SpringBoot and JPA, so this code could be whack.
Description
New models
user
andtag
, and bridge tableuser_book_tag
allow for expressing the following queriesthe
tag
s are relations with books, and all that exist now areREAD
,CURRENTLY_READING
, andWANT_TO_READ
.You can test it out with:
bazel run //store-api/src/main/java/com/book/store/api:app
and then⚠️ Note: The DB has to be created first, that's a gotcha. ⚠️ Note2: I'm a newbie with SpringBoot and JPA, so this code could be whack.