From a3b0deb762b787c1afb62d5add46555e77a686a0 Mon Sep 17 00:00:00 2001 From: Julio Gomez Diaz Date: Thu, 17 Jul 2025 13:01:39 +0200 Subject: [PATCH] #127 Clarify transaction management when using a dedicated mongodb database for javers and fix a header format --- documentation/spring-boot-integration/index.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/documentation/spring-boot-integration/index.md b/documentation/spring-boot-integration/index.md index 0d40e8ce..205e527e 100644 --- a/documentation/spring-boot-integration/index.md +++ b/documentation/spring-boot-integration/index.md @@ -219,6 +219,8 @@ javers: If the `javers.mongodb` property is defined, either `host` or `uri` has to be set. +If you use a transactional Javers instance (see [Transaction management in the MongoDB starter](#transaction-management-in-the-mongodb-starter)) the audit operations issued in the dedicated MongoDB database for Javers won't participate in the application's data transactions. + #### MongoClientSettings If you need more control over Javers’ dedicated `MongoClient`, you can configure a `MongoClientSettings` bean named `javersMongoClientSettings`. @@ -714,7 +716,7 @@ public class JaVersConfiguration { } ``` -

Database related customization

+

Database related customization

Q. Java `Instant` precision is `9` while `PostgreSQL` timestamp precision is `6` (rounded). As the result, JaVers reports `created` Instant as updated for an update after an insert (which JaVers records with nanos).