I am using spring with JPA and trying to execute query using @query with SQL query.and trying to map the result to an object. I have different entity class and mapping to other
replying to @Thanthu
the code should be like this
public interface StatsDTO { Integer getUserCount(); Byte getTypeId(); Instant getModifiedAt(); }
not this
public interface StatsDTO { Integer getUserCount; Byte getTypeId; Instant getModifiedAt; }