ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher.Mathru...@sybase.com
Subject RE: New to iBatis
Date Fri, 15 Jun 2007 19:20:04 GMT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii" plain; text 
Content-Type: 7bit Content-Transfer-Encoding:>
<META content="MSHTML 6.00.6000.16481" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=447171819-15062007>Yes, you can do that or you can pass in a java.util.Map 
that contains your values. This is probably the simpler.</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=447171819-15062007></SPAN></FONT>&nbsp;</DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=447171819-15062007>java.util.Map map = new 
java.util.Hashmap();</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=447171819-15062007>map.put("value1", date1);</SPAN></FONT></DIV>
<DIV dir=ltr align=left><FONT face=Arial color=#0000ff size=2><SPAN 
class=447171819-15062007>map.put("value2", date2);</SPAN></FONT></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> vinays84 &lt;vinays84@hotmail.com&gt;

[mailto:vinays84 &lt;vinays84@hotmail.com&gt;] <BR><B>Sent:</B>
Friday, June 15, 
2007 12:12 PM<BR><B>To:</B> user-java@ibatis.apache.org<BR><B>Subject:</B>
Re: 
New to iBatis<BR></FONT><BR></DIV>
<DIV></DIV><BR>Just as only a single object can be passed in for the return

class, can only <BR>a single object be passed in for a parameter class? Consider 
the query: <BR><BR>SELECT movie_name FROM movies WHERE release_date between 
#value1# AND <BR>#value2# <BR><BR>Could I pass in two dates as parameters,
or 
would I have to create a class <BR>containing value1 and value2 as properties. 
(this class obviously would be <BR>created solely for this one query). <BR>--

<BR>View this message in context: 
http://www.nabble.com/New-to-iBatis-tf3922862.html#a11145189 <BR>Sent from the 
iBATIS - User - Java mailing list archive at Nabble.com. 
<BR><BR><BR></BODY></HTML>


Mime
View raw message