stream on JPA lazy list

前端 未结 2 984
耶瑟儿~
耶瑟儿~ 2020-11-29 10:17

I have JPA entity with list like this:

@OneToMany(mappedBy = \"scadaElement\", orphanRemoval = true)
private List elementParameters;
         


        
2条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2020-11-29 11:15

    Why not using the real JPA Streaming?

    Stream findAllByName(String name);
    

提交回复
热议问题