I want write entity to server1, but entity history to server2, how do I config my datasource? Did anyone particular it?
How can I write entity history records to another server?
83 Views Asked by zsitech At
1
There are 1 best solutions below
Related Questions in HIBERNATE-ENVERS
- Hibernate Envers throws "A different object with the same identifier value was already associated with the session" on new entity(id exists) save
- @MappedSuperClass with @Audited working yet causing an error
- Impossible to inject the SecurityContext in Quarkus 3.6.5+
- Spring boot 3 + Envers
- After spring hibernate envers update SQLIntegrityConstraintViolationException
- How to add some costom columns and set custom values in Audit table while saved AuditedEntity?
- Cannot invoke "org.hibernate.envers.internal.entities.EntityConfiguration.getRelationDescription(String)" because "entCfg" is null
- Hibernate Envers implementation of custom composite type
- Hibernate Envers 6.4.1: Illegal argument on static metamodel field injection
- Hibernate envers, audit history returns strange structure
- Accessing Envers Revisions in SpringBoot 3/Hibernate 6 using multiple Instances
- Hibernate 6.2 envers classcastexception BasicValue to Component
- Envers and Hibernate 6.3.1 does not audit fields with annotation @Column(insertable = false, updatable = false)
- Hibernate Envers audit table primary key unexpected format
- Hibernate Envers inserts same revision into two audit records in same transaction
Related Questions in SPRING-DATA-ENVERS
- Hibernate Envers throws "A different object with the same identifier value was already associated with the session" on new entity(id exists) save
- @MappedSuperClass with @Audited working yet causing an error
- After spring hibernate envers update SQLIntegrityConstraintViolationException
- How to add some costom columns and set custom values in Audit table while saved AuditedEntity?
- Hibernate Envers 6.4.1: Illegal argument on static metamodel field injection
- Lazy loading revisioned entities
- Audit of 1 entity with 3 relationships causes error
- Hibernate uses @JoinColumn as sequence name instead of table name
- Unable to retrieve the revision number for an entity with spring-data-envers findLastChangeRevision
- Numeric Overflow exception when calling findRevisions() or even custom audit query - spring-data-jpa with oracle
- Hibernate 6 Envers: How to customize audit table of an @ElementCollection of @CompositeType?
- Integration Testing Spring Data Envers using Testcontainers and Spring Boot DataJpaTest
- Connection is closed with data-envers
- Find newest Revisions of Entities where timestamp is less than x
- How to output contents of _aud table as JSON?
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
There is no simple
DataSourceconfiguration that you could use. TheDataSourcewould need to analyse SQL statements in order to decide to which server to send them. You probably could implement something like this yourself, by searching for the names of the history tables in the SQL statements, but I wouldn't recommend that.Assuming your database supports this it seems more appropriate to use database link or some comparable technology, which allows you to write to the same database but have the data actually end up on the second server.