Hibernate Search 6 使用 Hibernate 6.2.5。

huangapple go评论68阅读模式
英文:

Hibernate search 6 with Hibernate 6.2.5

问题

我正尝试将我的应用程序从Spring Boot 2.7.6迁移到3.1.0,它使用Jakarta API和Hibernate 6.2.5。我使用的Hibernate Search版本是6.1.5,它依赖于Hibernate Core 5.6.8。我的问题是是否有办法在Hibernate 6.2.5和Spring Boot 3.1中使用Hibernate Search,还是这仍然在进行中?

英文:

I'm trying to migrate my application from spring boot 2.7.6 to 3.1.0 which uses jakarta api and hibernate 6.2.5. The version of the hibernate search that I use is 6.1.5 which depends on hibernate-core 5.6.8. My question is there a way to use hibernate search with hibernate 6.2.5 and spring boot 3.1 or this is still a work in progress?

答案1

得分: 2

Hibernate Search也支持Hibernate ORM 6,您可以使用 -orm6 版本的构件。

<!-- 其他Hibernate Search依赖项 -->
<dependency>
   <groupId>org.hibernate.search</groupId>
   <artifactId>hibernate-search-mapper-orm-orm6</artifactId> 
   <version>6.1.8.Final</version>
</dependency>

更多详情请参阅 https://docs.jboss.org/hibernate/stable/search/reference/en-US/html_single/#other-integrations-orm6

英文:

Hibernate Search supports Hibernate ORM 6 as well, you would want to use the -orm6 versions of the artifacts.

&lt;!-- other Hiberante Search dependencies --&gt;
&lt;dependency&gt;
   &lt;groupId&gt;org.hibernate.search&lt;/groupId&gt;
   &lt;artifactId&gt;hibernate-search-mapper-orm-orm6&lt;/artifactId&gt; 
   &lt;version&gt;6.1.8.Final&lt;/version&gt;
&lt;/dependency&gt;

See https://docs.jboss.org/hibernate/stable/search/reference/en-US/html_single/#other-integrations-orm6 for more details.

huangapple
  • 本文由 发表于 2023年7月3日 15:56:55
  • 转载请务必保留本文链接:https://go.coder-hub.com/76602827.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定