Consider a simple table User;
@entityPublic class User {integer user_id;String user_name;String email;}
Using ebean today I can write the following code
List l=Ebean.find(User.class).fetch("email").where(...).orderBy(...).findList();
This code will only populate the email member ititially.
What I really would like to do is
List l2=Ebean.find(User.class).fetch("email").where(...).orderBy(...).findSingleAttributeList();
In which the type of the list will be the class of the attribute designeted in the fetch(...) parameter.
The actual query I meant was
List l=Ebean.find(User.class).select("email").where(...).orderBy(...).findList();
and
List l2=Ebean.find(User.class).select("email").where(...).orderBy(...).findSingleAttributeList();