-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Java template simplified and updated
- Loading branch information
1 parent
c9c27ce
commit 1e10ccd
Showing
22 changed files
with
123 additions
and
267 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
groupId=ru.tinkoff.kora | ||
koraVersion=1.1.9 | ||
koraVersion=1.1.11 | ||
|
||
|
||
##### GRADLE ##### | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
src/main/java/ru/tinkoff/kora/java/crud/controller/HttpExceptionHandler.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 0 additions & 8 deletions
8
src/main/java/ru/tinkoff/kora/java/crud/model/dao/PetCategory.java
This file was deleted.
Oops, something went wrong.
14 changes: 0 additions & 14 deletions
14
src/main/java/ru/tinkoff/kora/java/crud/model/dao/PetWithCategory.java
This file was deleted.
Oops, something went wrong.
8 changes: 2 additions & 6 deletions
8
src/main/java/ru/tinkoff/kora/java/crud/model/mapper/PetMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,11 @@ | ||
package ru.tinkoff.kora.java.crud.model.mapper; | ||
|
||
import org.mapstruct.Mapper; | ||
import ru.tinkoff.kora.java.crud.model.dao.PetCategory; | ||
import ru.tinkoff.kora.java.crud.model.dao.PetWithCategory; | ||
import ru.tinkoff.kora.java.crud.openapi.http.server.model.CategoryTO; | ||
import ru.tinkoff.kora.java.crud.model.dao.Pet; | ||
import ru.tinkoff.kora.java.crud.openapi.http.server.model.PetTO; | ||
|
||
@Mapper | ||
public interface PetMapper { | ||
|
||
PetTO asDTO(PetWithCategory pet); | ||
|
||
CategoryTO asDTO(PetCategory category); | ||
PetTO asDTO(Pet pet); | ||
} |
23 changes: 0 additions & 23 deletions
23
src/main/java/ru/tinkoff/kora/java/crud/repository/CategoryRepository.java
This file was deleted.
Oops, something went wrong.
13 changes: 3 additions & 10 deletions
13
src/main/java/ru/tinkoff/kora/java/crud/repository/PetRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 3 additions & 4 deletions
7
src/main/java/ru/tinkoff/kora/java/crud/repository/mapper/PetStatusParameterMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 2 additions & 3 deletions
5
src/main/java/ru/tinkoff/kora/java/crud/repository/mapper/PetStatusResultMapper.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.