refactoring: move Serializer.kt
This commit is contained in:
@@ -5,8 +5,8 @@ import com.github.jasync.sql.db.QueryResult
|
|||||||
import com.github.jasync.sql.db.pool.ConnectionPool
|
import com.github.jasync.sql.db.pool.ConnectionPool
|
||||||
import com.github.jasync.sql.db.postgresql.PostgreSQLConnection
|
import com.github.jasync.sql.db.postgresql.PostgreSQLConnection
|
||||||
import com.github.jasync.sql.db.postgresql.PostgreSQLConnectionBuilder
|
import com.github.jasync.sql.db.postgresql.PostgreSQLConnectionBuilder
|
||||||
import fr.postgresjson.Serializer
|
|
||||||
import fr.postgresjson.entity.EntityI
|
import fr.postgresjson.entity.EntityI
|
||||||
|
import fr.postgresjson.serializer.Serializer
|
||||||
import java.util.concurrent.CompletableFuture
|
import java.util.concurrent.CompletableFuture
|
||||||
|
|
||||||
class Connection(
|
class Connection(
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
package fr.postgresjson.repository
|
package fr.postgresjson.repository
|
||||||
|
|
||||||
import fr.postgresjson.Serializer
|
|
||||||
import fr.postgresjson.connexion.Requester
|
import fr.postgresjson.connexion.Requester
|
||||||
import fr.postgresjson.entity.EntitiesCollections
|
import fr.postgresjson.entity.EntitiesCollections
|
||||||
import fr.postgresjson.entity.EntityI
|
import fr.postgresjson.entity.EntityI
|
||||||
|
import fr.postgresjson.serializer.Serializer
|
||||||
import kotlin.reflect.KClass
|
import kotlin.reflect.KClass
|
||||||
|
|
||||||
interface RepositoryI<T, E : EntityI<T?>> {
|
interface RepositoryI<T, E : EntityI<T?>> {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
package fr.postgresjson
|
package fr.postgresjson.serializer
|
||||||
|
|
||||||
import com.fasterxml.jackson.core.JsonParser
|
import com.fasterxml.jackson.core.JsonParser
|
||||||
import com.fasterxml.jackson.core.JsonProcessingException
|
import com.fasterxml.jackson.core.JsonProcessingException
|
||||||
@@ -1,6 +1,9 @@
|
|||||||
package fr.postgresjson
|
package fr.postgresjson
|
||||||
|
|
||||||
import fr.postgresjson.entity.IdEntity
|
import fr.postgresjson.entity.IdEntity
|
||||||
|
import fr.postgresjson.serializer.Serializer
|
||||||
|
import fr.postgresjson.serializer.deserialize
|
||||||
|
import fr.postgresjson.serializer.serialize
|
||||||
import org.junit.jupiter.api.Assertions.assertEquals
|
import org.junit.jupiter.api.Assertions.assertEquals
|
||||||
import org.junit.jupiter.api.Assertions.assertTrue
|
import org.junit.jupiter.api.Assertions.assertTrue
|
||||||
import org.junit.jupiter.api.BeforeEach
|
import org.junit.jupiter.api.BeforeEach
|
||||||
|
|||||||
Reference in New Issue
Block a user