fix(hibernate): improve transaction management and optimize entity fetching (#176)
* fix(hibernate): improve transaction management and optimize entity fetching * chore(tests): clean-up comments * chore: fix config issue in the kotlin dsl * fix(hibernate): fix entity equality checks * fix(hibernate): add transactional read-only support to BookService * Update booklore-api/src/main/java/org/booklore/model/entity/BookLoreUserEntity.java Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> * fix(hibernate): remove redundant annotations in BookLoreUserEntity * fix(hibernate): import Hibernate * fix(tests): fix merge conflict caused errors * refactor(book): optimize book retrieval methods and reduce cache sizes * refactor(metadata): remove lazy loading from description field in BookMetadataEntity * fix(build): increase max heap size for test tasks --------- Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com>
This commit is contained in:
co-authored by
coderabbitai[bot]
parent
be0b717ff4
commit
ad3a981ad1
@@ -133,12 +133,14 @@ dependencies {
|
||||
|
||||
hibernate {
|
||||
enhancement {
|
||||
enableAssociationManagement = true
|
||||
enableAssociationManagement = false
|
||||
enableLazyInitialization = true
|
||||
}
|
||||
}
|
||||
|
||||
tasks.named<Test>("test") {
|
||||
useJUnitPlatform()
|
||||
maxHeapSize = "2560m"
|
||||
jvmArgs("-XX:+EnableDynamicAgentLoading", "--enable-native-access=ALL-UNNAMED")
|
||||
finalizedBy(tasks.named("jacocoTestReport"))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user