-->
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: Need optimized Query for hibernate
PostPosted: Wed Aug 26, 2009 9:48 pm 
Newbie

Joined: Thu Jul 16, 2009 7:14 pm
Posts: 2
Hi,

I have two arrays of values X,Y,Z and 1,2
There is a table A with two columns Name and Place. I want to validate that in table A records with all the combination exists irrespective of duplicates.
e.g.

Table A
--------
X 1
Y 1
Z 1
X 2
Y 2
Z 2

I believe it is not appropriate to fire multiple queries to hibernate for each of these combinations as in future these combinations may grow.

Please suggest some alternate solution which may not cause performance issue on hibernates part.

Thanks in advance.


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.