From 1a91a38cbd3c9f5274f95864e51a9372fd940cea Mon Sep 17 00:00:00 2001 From: Vlad Mihalcea Date: Tue, 22 May 2018 17:56:10 +0300 Subject: [PATCH] HHH-12602 - Bytecode Enhancement documentation refers to removed property hibernate.ejb.use_class_enhancer --- .../topical/bytecode/BytecodeEnhancement.adoc | 16 ++++++++++++---- .../chapters/pc/BytecodeEnhancement.adoc | 13 +++++++++++-- 2 files changed, 23 insertions(+), 6 deletions(-) diff --git a/documentation/src/main/asciidoc/topical/bytecode/BytecodeEnhancement.adoc b/documentation/src/main/asciidoc/topical/bytecode/BytecodeEnhancement.adoc index bbcc95cf3a..70e6026838 100644 --- a/documentation/src/main/asciidoc/topical/bytecode/BytecodeEnhancement.adoc +++ b/documentation/src/main/asciidoc/topical/bytecode/BytecodeEnhancement.adoc @@ -25,10 +25,18 @@ will focus on the means Hibernate already exposes for performing these enhanceme === Run-time enhancement -Currently run-time enhancement of the domain model is only supported in managed JPA environments following the -JPA defined SPI for performing class transformations. Even then, this support is disabled by default. In this -scenario, run-time enhancement can be enabled by specifying `hibernate.ejb.use_class_enhancer=true` as a -persistent unit property. +Currently run-time enhancement of the domain model is only supported in managed JPA environments following the JPA defined SPI for performing class transformations. + +Even then, this support is disabled by default. To enable run-time enhancement, specify one of the following configuration properties: + +`*hibernate.enhancer.enableDirtyTracking*` (e.g. `true` or `false` (default value)):: +Enable dirty tracking feature in runtime bytecode enhancement. + +`*hibernate.enhancer.enableLazyInitialization*` (e.g. `true` or `false` (default value)):: +Enable lazy loading feature in runtime bytecode enhancement. This way, even basic types (e.g. `@Basic(fetch = FetchType.LAZY`)) can be fetched lazily. + +`*hibernate.enhancer.enableAssociationManagement*` (e.g. `true` or `false` (default value)):: +Enable association management feature in runtime bytecode enhancement which automatically synchronizes a bidirectional association when only one side is changed. === Build-time enhancement diff --git a/documentation/src/main/asciidoc/userguide/chapters/pc/BytecodeEnhancement.adoc b/documentation/src/main/asciidoc/userguide/chapters/pc/BytecodeEnhancement.adoc index ccf69d6a98..83b9b39af8 100644 --- a/documentation/src/main/asciidoc/userguide/chapters/pc/BytecodeEnhancement.adoc +++ b/documentation/src/main/asciidoc/userguide/chapters/pc/BytecodeEnhancement.adoc @@ -108,8 +108,17 @@ These are hard to discuss without diving into a discussion of Hibernate internal ===== Run-time enhancement Currently, run-time enhancement of the domain model is only supported in managed JPA environments following the JPA-defined SPI for performing class transformations. -Even then, this support is disabled by default. -To enable run-time enhancement, specify `hibernate.ejb.use_class_enhancer`=`true` as a persistent unit property. + +Even then, this support is disabled by default. To enable run-time enhancement, specify one of the following configuration properties: + +`*hibernate.enhancer.enableDirtyTracking*` (e.g. `true` or `false` (default value)):: +Enable dirty tracking feature in runtime bytecode enhancement. + +`*hibernate.enhancer.enableLazyInitialization*` (e.g. `true` or `false` (default value)):: +Enable lazy loading feature in runtime bytecode enhancement. This way, even basic types (e.g. `@Basic(fetch = FetchType.LAZY`)) can be fetched lazily. + +`*hibernate.enhancer.enableAssociationManagement*` (e.g. `true` or `false` (default value)):: +Enable association management feature in runtime bytecode enhancement which automatically synchronizes a bidirectional association when only one side is changed. [NOTE] ====