-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Generic HSL to load ID and Name into a Map
PostPosted: Wed Apr 05, 2006 11:58 am 
Beginner
Beginner

Joined: Thu Feb 26, 2004 11:45 am
Posts: 46
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.