diff --git a/buildSrc/src/main/groovy/nucleodb.library.gradle b/buildSrc/src/main/groovy/nucleodb.library.gradle index c6bd75a..539f978 100644 --- a/buildSrc/src/main/groovy/nucleodb.library.gradle +++ b/buildSrc/src/main/groovy/nucleodb.library.gradle @@ -3,7 +3,7 @@ plugins { } group = 'com.nucleodb' -version = '1.9.26' +version = '1.9.27' repositories { mavenCentral() diff --git a/library/src/main/java/com/nucleocore/library/database/tables/Connection.java b/library/src/main/java/com/nucleocore/library/database/tables/Connection.java index 0a5e6d8..b840dbd 100644 --- a/library/src/main/java/com/nucleocore/library/database/tables/Connection.java +++ b/library/src/main/java/com/nucleocore/library/database/tables/Connection.java @@ -67,10 +67,8 @@ public T copy(Class clazz) { .findAndRegisterModules() .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); try { - Serializer.log("Connection Copy"); - Serializer.log(this); T obj = om.readValue(om.writeValueAsString(this), clazz); - Serializer.log(obj); + ((Connection)obj).connectionHandler = this.connectionHandler; return obj; } catch (JsonProcessingException e) { e.printStackTrace(); diff --git a/library/src/main/java/com/nucleocore/library/database/utils/DataEntry.java b/library/src/main/java/com/nucleocore/library/database/utils/DataEntry.java index 27db9ec..53cf232 100644 --- a/library/src/main/java/com/nucleocore/library/database/utils/DataEntry.java +++ b/library/src/main/java/com/nucleocore/library/database/utils/DataEntry.java @@ -47,10 +47,7 @@ public T copy(Class clazz) { .findAndRegisterModules() .configure(DeserializationFeature.FAIL_ON_UNKNOWN_PROPERTIES, false); try { - Serializer.log("Data Entry Copy"); - Serializer.log(this); T obj = om.readValue(om.writeValueAsString(this), clazz); - Serializer.log(obj); return obj; } catch (JsonProcessingException e) { e.printStackTrace();