-->
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: About Hashmap' Mapping
PostPosted: Wed Dec 14, 2005 10:09 pm 
Newbie

Joined: Mon Dec 12, 2005 9:38 pm
Posts: 2
Hello, i am using Hibernate to map a Hashmap object . the key of the Hashmap is a string, the value of it is a customer object. I map the Hashmap object to database with the lazy mode.
But when i invoke the size() method of the hashmap. Hibernate will read all the customer object' data from the database and save to the session. the time will be delay.
I only want to know the size of the Hashmap and don't want the customer object. Help ????


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.