gpt4 book ai didi

JPA metamodel generation failure with Hibernate 6.3(Hibernate 6.3的JPA元模型生成失败)

转载 作者:bug小助手 更新时间:2023-10-25 09:21:04 33 4
gpt4 key购买 nike



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.

我启用了调试模式,但它没有添加任何有价值的信息。


更多回答
优秀答案推荐
更多回答

33 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com