diff --git a/core/src/main/java/org/hibernate/bytecode/BytecodeProvider.java b/core/src/main/java/org/hibernate/bytecode/BytecodeProvider.java index 682f69107a..2ad9a349e7 100644 --- a/core/src/main/java/org/hibernate/bytecode/BytecodeProvider.java +++ b/core/src/main/java/org/hibernate/bytecode/BytecodeProvider.java @@ -33,8 +33,8 @@ import org.hibernate.bytecode.util.FieldFilter; * Bytecode requirements break down into basically 3 areas
    *
  1. proxy generation (both for runtime-lazy-loading and basic proxy generation) * {@link #getProxyFactoryFactory()} - *
  2. bean relection optimization {@link #getReflectionOptimizer} - *
  3. field-access instumentation {@link #getTransformer} + *
  4. bean reflection optimization {@link #getReflectionOptimizer} + *
  5. field-access instrumentation {@link #getTransformer} *
* * @author Steve Ebersole @@ -44,7 +44,7 @@ public interface BytecodeProvider { * Retrieve the specific factory for this provider capable of * generating run-time proxies for lazy-loading purposes. * - * @return The provider specifc factory. + * @return The provider specific factory. */ public ProxyFactoryFactory getProxyFactoryFactory(); diff --git a/documentation/manual/src/main/docbook/en-US/content/configuration.xml b/documentation/manual/src/main/docbook/en-US/content/configuration.xml index 1f03ca74df..2465422482 100644 --- a/documentation/manual/src/main/docbook/en-US/content/configuration.xml +++ b/documentation/manual/src/main/docbook/en-US/content/configuration.xml @@ -835,7 +835,7 @@ hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect - +
Miscellaneous Properties @@ -917,16 +917,26 @@ hibernate.dialect = org.hibernate.dialect.PostgreSQLDialect - hibernate.cglib.use_reflection_optimizer - - Enables the use of CGLIB instead of runtime reflection - (System-level property). Reflection can sometimes be useful when - troubleshooting. Hibernate always requires CGLIB even if you turn - off the optimizer. You cannot set this property in - hibernate.cfg.xml. hibernate.bytecode.use_reflection_optimizer + + Enables the use of bytecode manipulation instead of + runtime reflection. This is a System-level property and cannot be set + in hibernate.cfg.xml. + Reflection can sometimes be useful when troubleshooting. + Hibernate always requires either CGLIB or javassist even + if you turn off the optimizer. e.g. true | false + + + hibernate.bytecode.provider + + Both javassist or cglib can be used as byte manipulation + engines; the default is javassist. e.g. javassist | + cglib +