From c50a6962b6c99c2e43c55746647e9e670ee7fb31 Mon Sep 17 00:00:00 2001 From: Pekka Helenius Date: Wed, 7 Oct 2020 00:45:08 +0300 Subject: [PATCH] Add un-hardcode TODOs Signed-off-by: Pekka Helenius --- .../java/com/fjordtek/bookstore/model/auth/RoleRepository.java | 2 ++ .../java/com/fjordtek/bookstore/model/auth/UserRepository.java | 2 ++ .../com/fjordtek/bookstore/model/auth/UserRoleRepository.java | 2 ++ .../com/fjordtek/bookstore/model/book/AuthorRepository.java | 2 ++ .../com/fjordtek/bookstore/model/book/BookHashRepository.java | 2 ++ .../java/com/fjordtek/bookstore/model/book/BookRepository.java | 2 ++ .../com/fjordtek/bookstore/model/book/CategoryRepository.java | 2 ++ 7 files changed, 14 insertions(+) diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/RoleRepository.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/RoleRepository.java index 2eb39a1..6e54928 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/RoleRepository.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/RoleRepository.java @@ -14,6 +14,8 @@ import org.springframework.data.rest.core.annotation.RepositoryRestResource; * @author Pekka Helenius */ +//TODO un-hardcode path & itemResourceHel +// @RepositoryRestResource( path = "roles", itemResourceRel = "roles", diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/UserRepository.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/UserRepository.java index cd12f1c..67c20b3 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/UserRepository.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/UserRepository.java @@ -12,6 +12,8 @@ import org.springframework.data.rest.core.annotation.RepositoryRestResource; * @author Pekka Helenius */ +//TODO un-hardcode path & itemResourceHel +// @RepositoryRestResource( path = "users", itemResourceRel = "users", diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/UserRoleRepository.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/UserRoleRepository.java index e9e5fa1..3c3b0fb 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/UserRoleRepository.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/auth/UserRoleRepository.java @@ -12,6 +12,8 @@ import org.springframework.data.rest.core.annotation.RepositoryRestResource; * @author Pekka Helenius */ +//TODO un-hardcode path & itemResourceHel +// @RepositoryRestResource( path = "userroles", itemResourceRel = "userroles", diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/book/AuthorRepository.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/book/AuthorRepository.java index 80d3ea9..b5bc8c4 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/book/AuthorRepository.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/book/AuthorRepository.java @@ -16,6 +16,8 @@ import org.springframework.data.rest.core.annotation.RestResource; * @author Pekka Helenius */ +//TODO un-hardcode path & itemResourceHel +// @RepositoryRestResource( path = "authors", itemResourceRel = "authors", diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookHashRepository.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookHashRepository.java index f66682c..097f0c6 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookHashRepository.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookHashRepository.java @@ -15,6 +15,8 @@ import org.springframework.data.rest.core.annotation.RepositoryRestResource; * @author Pekka Helenius */ +//TODO un-hardcode path & itemResourceHel +// @RepositoryRestResource( path = "bookhashes", itemResourceRel = "bookhashes", diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookRepository.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookRepository.java index 0932f39..4e85048 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookRepository.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookRepository.java @@ -19,6 +19,8 @@ import org.springframework.data.rest.core.annotation.RestResource; * @author Pekka Helenius */ +//TODO un-hardcode path & itemResourceHel +// @RepositoryRestResource( path = "booklist", itemResourceRel = "booklist", diff --git a/bookstore/src/main/java/com/fjordtek/bookstore/model/book/CategoryRepository.java b/bookstore/src/main/java/com/fjordtek/bookstore/model/book/CategoryRepository.java index 3c3ed29..b9ce44a 100644 --- a/bookstore/src/main/java/com/fjordtek/bookstore/model/book/CategoryRepository.java +++ b/bookstore/src/main/java/com/fjordtek/bookstore/model/book/CategoryRepository.java @@ -16,6 +16,8 @@ import org.springframework.data.rest.core.annotation.RestResource; * @author Pekka Helenius */ +//TODO un-hardcode path & itemResourceHel +// @RepositoryRestResource( path = "categories", itemResourceRel = "categories",