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 2121import org .hibernate .bytecode .enhance .spi .UnloadedClass ;
2222import org .hibernate .bytecode .enhance .spi .UnloadedField ;
2323
24+ import org .hibernate .bytecode .enhance .spi .UnsupportedEnhancementStrategy ;
2425import org .hibernate .testing .junit4 .CustomRunner ;
2526import org .junit .runner .Runner ;
2627import org .junit .runner .notification .RunNotifier ;
2930import org .junit .runners .model .InitializationError ;
3031import org .junit .runners .model .RunnerBuilder ;
3132
33+ import static org .hibernate .bytecode .enhance .spi .UnsupportedEnhancementStrategy .SKIP ;
3234import static org .hibernate .bytecode .internal .BytecodeProviderInitiator .buildDefaultBytecodeProvider ;
3335
3436/**
@@ -113,6 +115,12 @@ public boolean hasLazyLoadableAttributes(UnloadedClass classDescriptor) {
113115 public boolean isLazyLoadable (UnloadedField field ) {
114116 return options .lazyLoading () && super .isLazyLoadable ( field );
115117 }
118+
119+ @ Override
120+ public UnsupportedEnhancementStrategy getUnsupportedEnhancementStrategy () {
121+ final UnsupportedEnhancementStrategy strategy = options .unsupportedEnhancementStrategy ();
122+ return strategy != SKIP ? strategy : super .getUnsupportedEnhancementStrategy ();
123+ }
116124 };
117125 }
118126
Original file line number Diff line number Diff line change 44 */
55package org .hibernate .testing .bytecode .enhancement ;
66
7+ import org .hibernate .bytecode .enhance .spi .UnsupportedEnhancementStrategy ;
8+
79import java .lang .annotation .ElementType ;
810import java .lang .annotation .Inherited ;
911import java .lang .annotation .Retention ;
2123 boolean inlineDirtyChecking () default false ;
2224 boolean lazyLoading () default false ;
2325 boolean extendedEnhancement () default false ;
26+ UnsupportedEnhancementStrategy unsupportedEnhancementStrategy () default UnsupportedEnhancementStrategy .SKIP ;
2427}
Original file line number Diff line number Diff line change 44 */
55package org .hibernate .testing .bytecode .enhancement .extension .engine ;
66
7+ import static org .hibernate .bytecode .enhance .spi .UnsupportedEnhancementStrategy .SKIP ;
78import static org .hibernate .bytecode .internal .BytecodeProviderInitiator .buildDefaultBytecodeProvider ;
89
910import java .io .BufferedInputStream ;
2728import org .hibernate .bytecode .enhance .spi .UnloadedClass ;
2829import org .hibernate .bytecode .enhance .spi .UnloadedField ;
2930
31+ import org .hibernate .bytecode .enhance .spi .UnsupportedEnhancementStrategy ;
3032import org .hibernate .testing .bytecode .enhancement .ClassEnhancementSelector ;
3133import org .hibernate .testing .bytecode .enhancement .ClassEnhancementSelectors ;
3234import org .hibernate .testing .bytecode .enhancement .ClassSelector ;
@@ -112,6 +114,12 @@ public boolean hasLazyLoadableAttributes(UnloadedClass classDescriptor) {
112114 public boolean isLazyLoadable (UnloadedField field ) {
113115 return options .lazyLoading () && super .isLazyLoadable ( field );
114116 }
117+
118+ @ Override
119+ public UnsupportedEnhancementStrategy getUnsupportedEnhancementStrategy () {
120+ final UnsupportedEnhancementStrategy strategy = options .unsupportedEnhancementStrategy ();
121+ return strategy != SKIP ? strategy : super .getUnsupportedEnhancementStrategy ();
122+ }
115123 };
116124 }
117125
You can’t perform that action at this time.
0 commit comments