Package org.hibernate.cfg
Interface BytecodeSettings
- All Known Subinterfaces:
AvailableSettings
- All Known Implementing Classes:
Environment
public interface BytecodeSettings
Settings which control the
BytecodeProvider
used for bytecode enhancement and reflection optimization.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final String
Deprecated, for removal: This API element is subject to removal in a future version.Will be removed, Hibernate ORM will use the BytecodeProvider implementation it finds on the classpath loading it via the standard ServiceLoader mechanism.static final String
This is similar to the now deprecated legacy propertyhibernate.bytecode.provider
except it's used specifically to pass an existing instance of aBytecodeProvider
; this happens to also allow to override the implementation, but is primarily intended to allow reusing a specific instance; this could be useful when the implementation benefits from internal caches.static final String
Enable association management feature in runtime bytecode enhancementstatic final String
Deprecated, for removal: This API element is subject to removal in a future version.Will be removed without replacement.static final String
Deprecated, for removal: This API element is subject to removal in a future version.Will be removed without replacement.
-
Field Details
-
BYTECODE_PROVIDER
Deprecated, for removal: This API element is subject to removal in a future version.Will be removed, Hibernate ORM will use the BytecodeProvider implementation it finds on the classpath loading it via the standard ServiceLoader mechanism. Currently, there is only a single implementation which is included in Hibernate ORM, so it's not possible to override this. See HHH-17643Selects a bytecode enhancement library.At present only bytebuddy is supported, bytebuddy being the default since version 5.3.
- See Also:
- Default Value:
"bytebuddy"
-
BYTECODE_PROVIDER_INSTANCE
This is similar to the now deprecated legacy propertyhibernate.bytecode.provider
except it's used specifically to pass an existing instance of aBytecodeProvider
; this happens to also allow to override the implementation, but is primarily intended to allow reusing a specific instance; this could be useful when the implementation benefits from internal caches. When not set, Hibernate will create its default implementation.- See Also:
- Default Value:
null
-
ENHANCER_ENABLE_ASSOCIATION_MANAGEMENT
Enable association management feature in runtime bytecode enhancement- See Also:
- Default Value:
false
-
ENHANCER_ENABLE_DIRTY_TRACKING
Deprecated, for removal: This API element is subject to removal in a future version.Will be removed without replacement. See HHH-15641- See Also:
-
ENHANCER_ENABLE_LAZY_INITIALIZATION
Deprecated, for removal: This API element is subject to removal in a future version.Will be removed without replacement. See HHH-15641- See Also:
-