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

'hasOwnProperty' in javascript -

How to put a lock and transaction on table using spring 4 or above using jdbcTemplate and annotations like @Transactional? -

java - How to implement an entity bound odata action in olingo v4.3 -