Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想做一个 findAll jpa 查询。但我要返回的列之一是计数。
@Entity public class Dtoclass { @Id private String id; private Long count; }
我如何用计数来做到这一点。
我没有在我的存储库接口中使用@Query 注释,只是 JPARepository findAll。