You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Bytecode-enhanced bi-directional association management makes that first example work by managing the "other side" of a bi-directional association whenever one side is manipulated.
101
101
102
+
[IMPORTANT]
103
+
Hibernate's bidirectional association management bytecode enhancement feature has been deprecated. Users should instead manage both sides of such associations directly.
Copy file name to clipboardExpand all lines: tooling/hibernate-gradle-plugin/src/main/java/org/hibernate/orm/tooling/gradle/enhance/EnhancementHelper.java
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -47,6 +47,9 @@ public static void enhance(
47
47
if ( !enhancementDsl.getEnableLazyInitialization().get() ) {
48
48
logger.warn( "The 'enableLazyInitialization' configuration is deprecated and will be removed. Set the value to 'true' to get rid of this warning" );
49
49
}
50
+
if ( enhancementDsl.getEnableAssociationManagement().get() ) {
51
+
logger.warn("Management of bi-directional association persistent attributes is deprecated and will be removed. Set the value to 'false' to get rid of this warning" );
52
+
}
50
53
if ( !enhancementDsl.getEnableDirtyTracking().get() ) {
51
54
logger.warn( "The 'enableDirtyTracking' configuration is deprecated and will be removed. Set the value to 'true' to get rid of this warning" );
0 commit comments