Hello,
I am having an object like "Person" (id, name, birthday etc). I want to put all the persons names into a select. For that I only need the name and an ID. How can I fetch only those 2 fields (using HQL)? I have tried like this:
where PersonSelect is just a POJO with a name and an id. It does not work. It says that the constructor can't be found(I have build the constructor in the regular way ...PersonSelect(
String name,Long id).... ).
Please help.
Thanks.