I would like to do a findAll jpa query. But one of the columns I want to return is a count.
@Entity
public class Dtoclass {
@Id
private String id;
private Long count;
}
How do I do this with count.
I am not using the @Query annotation in my repository interface just JPARepository findAll.