Hibernate version:3.1
This probably is a silly/simple question. Is there an easy generic way of loading only 2 pieces of information out of mapped classes/tables without having to create special class mappings.
Typical use for almost all objects would be to simply select the Database ID, and Name suitable for display in a list so that a user can choose an item to edit, and subsequently load the item with the ID.
I don't want to load all the objects, i just need the ID and a name/description column. It could be returned to me in a Map, etc. I just don't want to have to map these little classes for all of my entity classes.
|