Spring Projection Error -
i'm trying use spring projection , error invaliddtaaccessapiusageexception "no aliases found in result tuple"
public interface personrepository extends ... { @query ("select p person p, ...") list<personprojection> getpeople(); } public person { private long id; private string fullname; ... } @projection(name = "personlight", types = {person.class}) public interface personprojection{ public long getid(); public string getfullname(); }
use:
list<personprojection> personrepo.getpeople();
what doing wrong?
Comments
Post a Comment