Get result from native query using Java Interface

You have to use aliases in your select clause

SELECT e.first_name as firstName, e.last_name as lastName

They correspond getFirstName() and getLastName() methods names in the IdsOnly interface

public interface IdsOnly {
    String getFirstName();
    String getLastName();
}