File tree Expand file tree Collapse file tree 3 files changed +19
-0
lines changed
hibernate-testing/src/main/java/org/hibernate/testing/bytecode/enhancement Expand file tree Collapse file tree 3 files changed +19
-0
lines changed Original file line number Diff line number Diff line change 2424import org .hibernate .bytecode .enhance .spi .UnloadedField ;
2525import org .hibernate .cfg .Environment ;
2626
27+ import org .hibernate .bytecode .enhance .spi .UnsupportedEnhancementStrategy ;
2728import org .hibernate .testing .junit4 .CustomRunner ;
2829import org .junit .runner .Runner ;
2930import org .junit .runner .notification .RunNotifier ;
3233import org .junit .runners .model .InitializationError ;
3334import org .junit .runners .model .RunnerBuilder ;
3435
36+ import static org .hibernate .bytecode .enhance .spi .UnsupportedEnhancementStrategy .SKIP ;
3537import static org .hibernate .bytecode .internal .BytecodeProviderInitiator .buildDefaultBytecodeProvider ;
3638
3739/**
@@ -116,6 +118,12 @@ public boolean hasLazyLoadableAttributes(UnloadedClass classDescriptor) {
116118 public boolean isLazyLoadable (UnloadedField field ) {
117119 return options .lazyLoading () && super .isLazyLoadable ( field );
118120 }
121+
122+ @ Override
123+ public UnsupportedEnhancementStrategy getUnsupportedEnhancementStrategy () {
124+ final UnsupportedEnhancementStrategy strategy = options .unsupportedEnhancementStrategy ();
125+ return strategy != SKIP ? strategy : super .getUnsupportedEnhancementStrategy ();
126+ }
119127 };
120128 }
121129
Original file line number Diff line number Diff line change 66 */
77package org .hibernate .testing .bytecode .enhancement ;
88
9+ import org .hibernate .bytecode .enhance .spi .UnsupportedEnhancementStrategy ;
10+
911import java .lang .annotation .ElementType ;
1012import java .lang .annotation .Inherited ;
1113import java .lang .annotation .Retention ;
2325 boolean inlineDirtyChecking () default false ;
2426 boolean lazyLoading () default false ;
2527 boolean extendedEnhancement () default false ;
28+ UnsupportedEnhancementStrategy unsupportedEnhancementStrategy () default UnsupportedEnhancementStrategy .SKIP ;
2629}
Original file line number Diff line number Diff line change 66 */
77package org .hibernate .testing .bytecode .enhancement .extension .engine ;
88
9+ import static org .hibernate .bytecode .enhance .spi .UnsupportedEnhancementStrategy .SKIP ;
910import static org .hibernate .bytecode .internal .BytecodeProviderInitiator .buildDefaultBytecodeProvider ;
1011
1112import java .io .BufferedInputStream ;
2930import org .hibernate .bytecode .enhance .spi .UnloadedClass ;
3031import org .hibernate .bytecode .enhance .spi .UnloadedField ;
3132
33+ import org .hibernate .bytecode .enhance .spi .UnsupportedEnhancementStrategy ;
3234import org .hibernate .testing .bytecode .enhancement .ClassEnhancementSelector ;
3335import org .hibernate .testing .bytecode .enhancement .ClassEnhancementSelectors ;
3436import org .hibernate .testing .bytecode .enhancement .ClassSelector ;
@@ -114,6 +116,12 @@ public boolean hasLazyLoadableAttributes(UnloadedClass classDescriptor) {
114116 public boolean isLazyLoadable (UnloadedField field ) {
115117 return options .lazyLoading () && super .isLazyLoadable ( field );
116118 }
119+
120+ @ Override
121+ public UnsupportedEnhancementStrategy getUnsupportedEnhancementStrategy () {
122+ final UnsupportedEnhancementStrategy strategy = options .unsupportedEnhancementStrategy ();
123+ return strategy != SKIP ? strategy : super .getUnsupportedEnhancementStrategy ();
124+ }
117125 };
118126 }
119127
You can’t perform that action at this time.
0 commit comments