I tried to generate JPA Metamodel in Hibernate 6.3 project so I added the jpamodelgen dependency:
我尝试在Hibernate 6.3项目中生成JPA元模型,所以我添加了jpamodelgen依赖项:
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.10.1</version>
<configuration>
<source>${java.version}</source>
<target>${java.version}</target>
<release>20</release>
<annotationProcessorPaths>
<annotationProcessorPath>
<groupId>org.hibernate.orm</groupId>
<artifactId>hibernate-jpamodelgen</artifactId>
<version>6.3.0.Final</version>
</annotationProcessorPath>
</annotationProcessorPaths>
</configuration>
</plugin>
And then tried to build the project: mvn install
然后尝试构建项目:MVN Install
But received an error:
Error generating JPA metamodel: Range [0, 3) out of bounds for length 1
但收到错误:生成JPA元模型时出错:Range[0,3]超出长度1的界限
I enabled debug mode but it didn't add any valuable information.
我启用了调试模式,但它没有添加任何有价值的信息。
更多回答
优秀答案推荐
我是一名优秀的程序员,十分优秀!