Browse Source

Model rebase: book properties

v0.0.3-alpha
Pekka Helenius 4 years ago
parent
commit
d2d7050f21
16 changed files with 35 additions and 35 deletions
  1. +8
    -8
      bookstore/src/main/java/com/fjordtek/bookstore/BookstoreApplication.java
  2. +1
    -1
      bookstore/src/main/java/com/fjordtek/bookstore/model/book/Author.java
  3. +1
    -1
      bookstore/src/main/java/com/fjordtek/bookstore/model/book/AuthorJsonSerializer.java
  4. +1
    -1
      bookstore/src/main/java/com/fjordtek/bookstore/model/book/AuthorRepository.java
  5. +1
    -1
      bookstore/src/main/java/com/fjordtek/bookstore/model/book/Book.java
  6. +1
    -1
      bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookEventHandler.java
  7. +1
    -1
      bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookHash.java
  8. +1
    -1
      bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookHashRepository.java
  9. +1
    -1
      bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookRepository.java
  10. +1
    -1
      bookstore/src/main/java/com/fjordtek/bookstore/model/book/Category.java
  11. +1
    -1
      bookstore/src/main/java/com/fjordtek/bookstore/model/book/CategoryJsonSerializer.java
  12. +1
    -1
      bookstore/src/main/java/com/fjordtek/bookstore/model/book/CategoryRepository.java
  13. +3
    -3
      bookstore/src/main/java/com/fjordtek/bookstore/service/BookAuthorHelper.java
  14. +4
    -4
      bookstore/src/main/java/com/fjordtek/bookstore/web/BookBasePathAwareController.java
  15. +6
    -6
      bookstore/src/main/java/com/fjordtek/bookstore/web/BookController.java
  16. +3
    -3
      bookstore/src/main/java/com/fjordtek/bookstore/web/BookRestController.java

+ 8
- 8
bookstore/src/main/java/com/fjordtek/bookstore/BookstoreApplication.java View File

@ -12,14 +12,14 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.context.annotation.Bean;
import com.fjordtek.bookstore.model.Author;
import com.fjordtek.bookstore.model.AuthorRepository;
import com.fjordtek.bookstore.model.Book;
import com.fjordtek.bookstore.model.BookHash;
import com.fjordtek.bookstore.model.BookHashRepository;
import com.fjordtek.bookstore.model.BookRepository;
import com.fjordtek.bookstore.model.Category;
import com.fjordtek.bookstore.model.CategoryRepository;
import com.fjordtek.bookstore.model.book.Author;
import com.fjordtek.bookstore.model.book.AuthorRepository;
import com.fjordtek.bookstore.model.book.Book;
import com.fjordtek.bookstore.model.book.BookHash;
import com.fjordtek.bookstore.model.book.BookHashRepository;
import com.fjordtek.bookstore.model.book.BookRepository;
import com.fjordtek.bookstore.model.book.Category;
import com.fjordtek.bookstore.model.book.CategoryRepository;
/**
*


bookstore/src/main/java/com/fjordtek/bookstore/model/Author.java → bookstore/src/main/java/com/fjordtek/bookstore/model/book/Author.java View File

@ -1,6 +1,6 @@
//Pekka Helenius <fincer89@hotmail.com>, Fjordtek 2020
package com.fjordtek.bookstore.model;
package com.fjordtek.bookstore.model.book;
import java.util.List;

bookstore/src/main/java/com/fjordtek/bookstore/model/AuthorJsonSerializer.java → bookstore/src/main/java/com/fjordtek/bookstore/model/book/AuthorJsonSerializer.java View File

@ -1,6 +1,6 @@
//Pekka Helenius <fincer89@hotmail.com>, Fjordtek 2020
package com.fjordtek.bookstore.model;
package com.fjordtek.bookstore.model.book;
import java.io.IOException;

bookstore/src/main/java/com/fjordtek/bookstore/model/AuthorRepository.java → bookstore/src/main/java/com/fjordtek/bookstore/model/book/AuthorRepository.java View File

@ -1,6 +1,6 @@
//Pekka Helenius <fincer89@hotmail.com>, Fjordtek 2020
package com.fjordtek.bookstore.model;
package com.fjordtek.bookstore.model.book;
import java.util.List;

bookstore/src/main/java/com/fjordtek/bookstore/model/Book.java → bookstore/src/main/java/com/fjordtek/bookstore/model/book/Book.java View File

@ -1,6 +1,6 @@
//Pekka Helenius <fincer89@hotmail.com>, Fjordtek 2020
package com.fjordtek.bookstore.model;
package com.fjordtek.bookstore.model.book;
import java.math.BigDecimal;

bookstore/src/main/java/com/fjordtek/bookstore/model/BookEventHandler.java → bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookEventHandler.java View File

@ -1,6 +1,6 @@
//Pekka Helenius <fincer89@hotmail.com>, Fjordtek 2020
package com.fjordtek.bookstore.model;
package com.fjordtek.bookstore.model.book;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.rest.core.annotation.HandleAfterCreate;

bookstore/src/main/java/com/fjordtek/bookstore/model/BookHash.java → bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookHash.java View File

@ -1,6 +1,6 @@
//Pekka Helenius <fincer89@hotmail.com>, Fjordtek 2020
package com.fjordtek.bookstore.model;
package com.fjordtek.bookstore.model.book;
import java.security.SecureRandom;

bookstore/src/main/java/com/fjordtek/bookstore/model/BookHashRepository.java → bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookHashRepository.java View File

@ -1,6 +1,6 @@
//Pekka Helenius <fincer89@hotmail.com>, Fjordtek 2020
package com.fjordtek.bookstore.model;
package com.fjordtek.bookstore.model.book;
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;

bookstore/src/main/java/com/fjordtek/bookstore/model/BookRepository.java → bookstore/src/main/java/com/fjordtek/bookstore/model/book/BookRepository.java View File

@ -1,6 +1,6 @@
//Pekka Helenius <fincer89@hotmail.com>, Fjordtek 2020
package com.fjordtek.bookstore.model;
package com.fjordtek.bookstore.model.book;
import java.util.List;
import java.util.Optional;

bookstore/src/main/java/com/fjordtek/bookstore/model/Category.java → bookstore/src/main/java/com/fjordtek/bookstore/model/book/Category.java View File

@ -1,6 +1,6 @@
//Pekka Helenius <fincer89@hotmail.com>, Fjordtek 2020
package com.fjordtek.bookstore.model;
package com.fjordtek.bookstore.model.book;
import java.util.List;

bookstore/src/main/java/com/fjordtek/bookstore/model/CategoryJsonSerializer.java → bookstore/src/main/java/com/fjordtek/bookstore/model/book/CategoryJsonSerializer.java View File

@ -1,6 +1,6 @@
//Pekka Helenius <fincer89@hotmail.com>, Fjordtek 2020
package com.fjordtek.bookstore.model;
package com.fjordtek.bookstore.model.book;
import java.io.IOException;

bookstore/src/main/java/com/fjordtek/bookstore/model/CategoryRepository.java → bookstore/src/main/java/com/fjordtek/bookstore/model/book/CategoryRepository.java View File

@ -1,6 +1,6 @@
//Pekka Helenius <fincer89@hotmail.com>, Fjordtek 2020
package com.fjordtek.bookstore.model;
package com.fjordtek.bookstore.model.book;
import java.util.List;

+ 3
- 3
bookstore/src/main/java/com/fjordtek/bookstore/service/BookAuthorHelper.java View File

@ -5,9 +5,9 @@ package com.fjordtek.bookstore.service;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;
import com.fjordtek.bookstore.model.Author;
import com.fjordtek.bookstore.model.AuthorRepository;
import com.fjordtek.bookstore.model.Book;
import com.fjordtek.bookstore.model.book.Author;
import com.fjordtek.bookstore.model.book.AuthorRepository;
import com.fjordtek.bookstore.model.book.Book;
/**
*


+ 4
- 4
bookstore/src/main/java/com/fjordtek/bookstore/web/BookBasePathAwareController.java View File

@ -18,10 +18,10 @@ import org.springframework.web.bind.annotation.RequestMethod;
import com.fasterxml.jackson.databind.JsonNode;
import com.fasterxml.jackson.databind.ObjectMapper;
import com.fasterxml.jackson.databind.ObjectReader;
import com.fjordtek.bookstore.model.Book;
import com.fjordtek.bookstore.model.BookEventHandler;
import com.fjordtek.bookstore.model.BookRepository;
import com.fjordtek.bookstore.model.CategoryRepository;
import com.fjordtek.bookstore.model.book.Book;
import com.fjordtek.bookstore.model.book.BookEventHandler;
import com.fjordtek.bookstore.model.book.BookRepository;
import com.fjordtek.bookstore.model.book.CategoryRepository;
import com.fjordtek.bookstore.service.BookAuthorHelper;
import com.fjordtek.bookstore.service.HttpServerLogger;


+ 6
- 6
bookstore/src/main/java/com/fjordtek/bookstore/web/BookController.java View File

@ -27,12 +27,12 @@ import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;
import com.fjordtek.bookstore.model.AuthorRepository;
import com.fjordtek.bookstore.model.Book;
import com.fjordtek.bookstore.model.BookHash;
import com.fjordtek.bookstore.model.BookHashRepository;
import com.fjordtek.bookstore.model.BookRepository;
import com.fjordtek.bookstore.model.CategoryRepository;
import com.fjordtek.bookstore.model.book.AuthorRepository;
import com.fjordtek.bookstore.model.book.Book;
import com.fjordtek.bookstore.model.book.BookHash;
import com.fjordtek.bookstore.model.book.BookHashRepository;
import com.fjordtek.bookstore.model.book.BookRepository;
import com.fjordtek.bookstore.model.book.CategoryRepository;
import com.fjordtek.bookstore.service.BigDecimalPropertyEditor;
import com.fjordtek.bookstore.service.BookAuthorHelper;
import com.fjordtek.bookstore.service.HttpServerLogger;


+ 3
- 3
bookstore/src/main/java/com/fjordtek/bookstore/web/BookRestController.java View File

@ -16,9 +16,9 @@ import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.ResponseStatus;
import org.springframework.web.bind.annotation.RestController;
import com.fjordtek.bookstore.model.Book;
import com.fjordtek.bookstore.model.BookHashRepository;
import com.fjordtek.bookstore.model.BookRepository;
import com.fjordtek.bookstore.model.book.Book;
import com.fjordtek.bookstore.model.book.BookHashRepository;
import com.fjordtek.bookstore.model.book.BookRepository;
import com.fjordtek.bookstore.service.HttpServerLogger;
/**


Loading…
Cancel
Save