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

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -