Код: Выделить всё
public interface DaoObjectProjection{
Integer getTotalAmount();
String getCode();
String getName();
String getLastName();
}
Код: Выделить всё
public class ObjectWantSend {
private Integer totalAmount;
private String code;
private String name;
private String lastName;
//Getters
//Setters
}
Код: Выделить всё
ObjectWantSend.setTotalAmount(DaoObjectProjection.getTotalAmount);
Подробнее здесь: https://stackoverflow.com/questions/602 ... ect-spring