I\'m using Spring JPA and I need to have a native query. With that query, I need to get only two fields from the table, so I\'m trying to use Projections. It isn\'t working
JPA 2.1 introduces an interesting ConstructorResult feature if you want to keep it native.