Skip to content

Commit 105ad61

Browse files
Merge pull request #128 from InditexTech/feature/GH-127-clarify-transaction-management-mongo
Clarify transaction management when using a dedicated mongodb database for javers and fix a header format
2 parents bef08c5 + a3b0deb commit 105ad61

File tree

1 file changed

+3
-1
lines changed
  • documentation/spring-boot-integration

1 file changed

+3
-1
lines changed

documentation/spring-boot-integration/index.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,6 +219,8 @@ javers:
219219

220220
If the `javers.mongodb` property is defined, either `host` or `uri` has to be set.
221221

222+
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.
223+
222224
#### MongoClientSettings
223225
If you need more control over Javers’ dedicated `MongoClient`,
224226
you can configure a `MongoClientSettings` bean named `javersMongoClientSettings`.
@@ -714,7 +716,7 @@ public class JaVersConfiguration {
714716
}
715717
```
716718

717-
<h3 id="javers-faq-db">Database related customization</h2>
719+
<h3 id="javers-faq-db">Database related customization</h3>
718720
Q. Java `Instant` precision is `9` while `PostgreSQL` timestamp precision is `6` (rounded).
719721
As the result, JaVers reports `created` Instant as updated for an update after an insert (which JaVers records with nanos).
720722

0 commit comments

Comments
 (0)