簡體   English   中英

集成 Eclipse Collections 與 Spring 數據 JPA

[英]Integration Eclipse Collections with Spring Data JPA

是否可以將 eclipse collections 與 spring 數據 jpa + hibernate 整合?

例如:

import org.springframework.data.jpa.repository.JpaRepository;
import org.eclipse.collections.api.list.ImmutableList;

public interface UserRepository extends JpaRepository<User, Long> {

    ImmutableList<User> findByActiveTrue();

}

我不相信今天這是可能的。 在 spring-data-commons 項目的一個問題中討論了為來自不同庫的不可變集合類型提供支持。

https://github.com/spring-projects/spring-data-commons/issues/1817

該問題於 2020 年 12 月分配。

更新(5 月 4 日) :過去幾天關於 GitHub 問題有一些更新:

https://github.com/spring-projects/spring-data-commons/issues/1817#issuecomment-1117257169

聽起來也許這個問題最終會有一個肯定的答案。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM