Quote:
In Hibernate, use an HQL query.
But then I would still be returning the list of Signon class instances, would I not?
If not, then it appears I'd have to make up a new class something like:
Code:
public class SignonUserName {
private String userName;
...
}
and then use it in the query:
Code:
<sql-query name="hbUniqueUserList">
<return alias="sigonUserName" class="SignonUserName"/>
select distinct {Signon}.USERNAME as value from SIGNON {Signon}
</sql-query>
Is that what you had in mind? Seems like a lot of work just to run a query.
Also, the SQL query must only use the classes that have been mapped to tables, correct?
Thanks