RED-8702: Explore document databases to store entityLog
This commit is contained in:
parent
e3b08a0544
commit
900a18be8b
@ -24,16 +24,17 @@ repositories {
|
|||||||
mavenCentral()
|
mavenCentral()
|
||||||
}
|
}
|
||||||
|
|
||||||
val springBootVersion = "3.1.2"
|
val springBootVersion = "3.1.5"
|
||||||
|
val springCloudVersion = "4.0.4"
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
api("com.fasterxml.jackson.core:jackson-databind:2.15.2:")
|
api("com.fasterxml.jackson.core:jackson-databind:2.15.2:")
|
||||||
api("com.knecon.fforesight:tenant-commons:0.21.0")
|
api("com.knecon.fforesight:tenant-commons:0.23.0")
|
||||||
api("com.zaxxer:HikariCP:5.0.1")
|
api("com.zaxxer:HikariCP:5.0.1")
|
||||||
api("com.google.guava:guava:32.1.2-jre")
|
api("com.google.guava:guava:32.1.2-jre")
|
||||||
api("org.liquibase:liquibase-core:4.20.0")
|
api("org.liquibase:liquibase-core:4.20.0")
|
||||||
api("org.springframework.boot:spring-boot-starter-data-jpa:${springBootVersion}")
|
api("org.springframework.boot:spring-boot-starter-data-jpa:${springBootVersion}")
|
||||||
api("org.springframework.cloud:spring-cloud-starter-openfeign:4.0.4")
|
api("org.springframework.cloud:spring-cloud-starter-openfeign:${springCloudVersion}")
|
||||||
api("org.springframework.boot:spring-boot-starter-amqp:${springBootVersion}")
|
api("org.springframework.boot:spring-boot-starter-amqp:${springBootVersion}")
|
||||||
api("org.postgresql:postgresql:42.6.0")
|
api("org.postgresql:postgresql:42.6.0")
|
||||||
api("org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}")
|
api("org.springframework.boot:spring-boot-configuration-processor:${springBootVersion}")
|
||||||
|
|||||||
@ -9,7 +9,6 @@ import java.util.Set;
|
|||||||
import javax.sql.DataSource;
|
import javax.sql.DataSource;
|
||||||
|
|
||||||
import org.postgresql.util.PSQLException;
|
import org.postgresql.util.PSQLException;
|
||||||
import org.springframework.amqp.rabbit.annotation.RabbitListener;
|
|
||||||
import org.springframework.beans.factory.annotation.Autowired;
|
import org.springframework.beans.factory.annotation.Autowired;
|
||||||
import org.springframework.beans.factory.annotation.Qualifier;
|
import org.springframework.beans.factory.annotation.Qualifier;
|
||||||
import org.springframework.beans.factory.annotation.Value;
|
import org.springframework.beans.factory.annotation.Value;
|
||||||
@ -20,7 +19,6 @@ import org.springframework.jdbc.core.StatementCallback;
|
|||||||
import org.springframework.jdbc.datasource.SingleConnectionDataSource;
|
import org.springframework.jdbc.datasource.SingleConnectionDataSource;
|
||||||
import org.springframework.stereotype.Service;
|
import org.springframework.stereotype.Service;
|
||||||
|
|
||||||
import com.knecon.fforesight.databasetenantcommons.providers.events.TenantCreatedEvent;
|
|
||||||
import com.knecon.fforesight.databasetenantcommons.providers.utils.JDBCUtils;
|
import com.knecon.fforesight.databasetenantcommons.providers.utils.JDBCUtils;
|
||||||
import com.knecon.fforesight.tenantcommons.EncryptionDecryptionService;
|
import com.knecon.fforesight.tenantcommons.EncryptionDecryptionService;
|
||||||
import com.knecon.fforesight.tenantcommons.TenantProvider;
|
import com.knecon.fforesight.tenantcommons.TenantProvider;
|
||||||
|
|||||||
@ -122,4 +122,23 @@ public class MagicConverter {
|
|||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
public static void copyAllFields(Object source, Object target) {
|
||||||
|
|
||||||
|
var sourceClass = source.getClass();
|
||||||
|
var targetClass = target.getClass();
|
||||||
|
|
||||||
|
var sourceFields = sourceClass.getDeclaredFields();
|
||||||
|
|
||||||
|
for (var field : sourceFields) {
|
||||||
|
try {
|
||||||
|
var targetField = targetClass.getDeclaredField(field.getName());
|
||||||
|
field.setAccessible(true);
|
||||||
|
targetField.setAccessible(true);
|
||||||
|
targetField.set(target, field.get(source));
|
||||||
|
} catch (NoSuchFieldException | IllegalAccessException ignored) {
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user