File tree Expand file tree Collapse file tree 1 file changed +8
-0
lines changed
spring-orm/src/main/java/org/springframework/orm/jpa/vendor Expand file tree Collapse file tree 1 file changed +8
-0
lines changed Original file line number Diff line number Diff line change 22
22
23
23
import jakarta .persistence .EntityManagerFactory ;
24
24
import jakarta .persistence .spi .PersistenceUnitInfo ;
25
+ import org .hibernate .bytecode .enhance .spi .EnhancementContext ;
25
26
import org .hibernate .cfg .Configuration ;
26
27
import org .hibernate .cfg .Environment ;
27
28
import org .hibernate .jpa .HibernatePersistenceProvider ;
@@ -63,6 +64,13 @@ public EntityManagerFactory createContainerEntityManagerFactory(PersistenceUnitI
63
64
public List <String > getManagedClassNames () {
64
65
return mergedClassesAndPackages ;
65
66
}
67
+
68
+ @ Override
69
+ public void pushClassTransformer (EnhancementContext enhancementContext ) {
70
+ if (!NativeDetector .inNativeImage ()) {
71
+ super .pushClassTransformer (enhancementContext );
72
+ }
73
+ }
66
74
}, properties ).build ();
67
75
}
68
76
You can’t perform that action at this time.
0 commit comments