Hello Dirk,
You can always select on the attribute of your object. I.e: Select object.id From MyObject object;
This should return a list with your keys.
When you select on multiple values a list of Object[] is returned, where Object[].length is equal to the attributes you selected.
I.e.: select object.id, object.name from MyObject as object; returns a list with Object[] instances where Object[0] = id and Object[1] = name.
Another nice way of selecting a subset of your attributes, but retrieve an object instance is like this:
select new MyObject(object.id,object.name) from MyObject object;
Hope this will help.
_________________ Dencel
- The sun has never seen a shadow -
|