-->
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.  [ 2 posts ] 
Author Message
 Post subject: How to embed SQL select statement in the Mapping XML file
PostPosted: Mon Jul 31, 2006 1:06 am 
Newbie

Joined: Mon Jul 31, 2006 12:39 am
Posts: 8
Location: Bangalore
Hi All, I'm new to this forum and also to Hibernate. I'm facing a problem can anyone help me out. I'll just try to explain the problem with an example. I have two tables A and B. Table B contains some String with a corresponding Integer values (key value pair consider it that way). Now I want to insert values in table A but before that i need to get the integer value of the string (dynamic) stored in the B table. Can anyone tell me how can i do this in the Mapping XML itself and also how to pass the parameter (that is the string) for the where condition.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 31, 2006 11:42 am 
Beginner
Beginner

Joined: Tue May 02, 2006 10:04 am
Posts: 29
http://www.javalobby.org/java/forums/m91885316.html


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

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.