refactoring: move Serializer.kt

This commit is contained in:
2019-06-24 16:50:02 +02:00
parent 793922f396
commit bfefcac88d
4 changed files with 6 additions and 3 deletions

View File

@@ -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(

View File

@@ -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?>> {

View File

@@ -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

View File

@@ -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