-
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.
Kotlin template simplified and updated
- Loading branch information
1 parent
3a0921f
commit a7c76c6
Showing
20 changed files
with
117 additions
and
228 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
2 changes: 1 addition & 1 deletion
2
src/main/java/ru/tinkoff/kora/kotlin/crud/controller/HttpExceptionHandler.kt
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
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,13 +1,10 @@ | ||
package ru.tinkoff.kora.kotlin.example.crud.model | ||
package ru.tinkoff.kora.kotlin.crud.model | ||
|
||
import org.mapstruct.Mapper | ||
import ru.tinkoff.kora.kotlin.crud.openapi.http.server.model.CategoryTO | ||
import ru.tinkoff.kora.kotlin.crud.openapi.http.server.model.PetTO | ||
|
||
@Mapper | ||
interface PetMapper { | ||
|
||
fun petWithCategoryToPetTO(pet: PetWithCategory): PetTO | ||
|
||
fun petCategoryToCategoryTO(category: PetCategory): CategoryTO | ||
fun asDTO(pet: Pet): PetTO | ||
} |
21 changes: 0 additions & 21 deletions
21
src/main/java/ru/tinkoff/kora/kotlin/crud/repository/CategoryRepository.kt
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
src/main/java/ru/tinkoff/kora/kotlin/crud/repository/Mappers.kt
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
16 changes: 4 additions & 12 deletions
16
src/main/java/ru/tinkoff/kora/kotlin/crud/repository/PetRepository.kt
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,8 +1,8 @@ | ||
package ru.tinkoff.kora.kotlin.example.crud.service | ||
package ru.tinkoff.kora.kotlin.crud.service | ||
|
||
import ru.tinkoff.kora.cache.annotation.Cache | ||
import ru.tinkoff.kora.cache.caffeine.CaffeineCache | ||
import ru.tinkoff.kora.kotlin.example.crud.model.PetWithCategory | ||
import ru.tinkoff.kora.kotlin.crud.model.Pet | ||
|
||
@Cache("pet-cache") | ||
interface PetCache : CaffeineCache<Long, PetWithCategory> | ||
interface PetCache : CaffeineCache<Long, Pet> |
Oops, something went wrong.