[英]Integration Eclipse Collections with Spring Data JPA
is it possible integration eclipse collections with spring data jpa + hibernate?是否可以将 eclipse collections 与 spring 数据 jpa + hibernate 整合?
for example:例如:
import org.springframework.data.jpa.repository.JpaRepository;
import org.eclipse.collections.api.list.ImmutableList;
public interface UserRepository extends JpaRepository<User, Long> {
ImmutableList<User> findByActiveTrue();
}
I don't believe this is possible today.我不相信今天这是可能的。 Providing support for Immutable Collection types from different libraries has been discussed in an issue on the spring-data-commons project.
在 spring-data-commons 项目的一个问题中讨论了为来自不同库的不可变集合类型提供支持。
https://github.com/spring-projects/spring-data-commons/issues/1817 https://github.com/spring-projects/spring-data-commons/issues/1817
The issue was assigned in Dec. 2020.该问题于 2020 年 12 月分配。
Update (May 4th) : There have been some updates in the past couple of days on the GitHub issue:更新(5 月 4 日) :过去几天关于 GitHub 问题有一些更新:
https://github.com/spring-projects/spring-data-commons/issues/1817#issuecomment-1117257169 https://github.com/spring-projects/spring-data-commons/issues/1817#issuecomment-1117257169
It sounds like perhaps this question will eventually have a positive answer.听起来也许这个问题最终会有一个肯定的答案。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.