这可能是什么原因,这意味着什么?我只是用字节码增强了我的实体并运行了应用程序。在 openjpa 启动时,我会在日志中获得以下信息:
3145 desktop INFO [Thread-4] openjpa.Runtime - The Entity "desktop.dto.Funeral" was enhanced at level "121 008 823", but the current level of enhancement is "196 634 845".
3148 desktop INFO [Thread-4] openjpa.Runtime - A down level Entity was detected and logged. Please enable RUNTIME trace to see all down level Entities.
从我的角度来看,没有发现任何问题。
Maven 中的 pom 插件:
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.openjpa</groupId>
<artifactId>openjpa-maven-plugin</artifactId>
<version>3.1.2</version>
<configuration>
<includes>desktop/model/*.class</includes>
<addDefaultConstructor>true</addDefaultConstructor>
<enforcePropertyRestrictions>true</enforcePropertyRestrictions>
</configuration>
<executions>
<execution>
<id>enhancer</id>
<phase>process-classes</phase>
<goals>
<goal>enhance</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>