ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christopher.Mathru...@sybase.com
Subject RE: ResultMap and Result class
Date Mon, 19 Feb 2007 17:19:31 GMT
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii" inline 
Content-Disposition: format="flowed" plain; text Content-Type: 7bit 
Content-Transfer-Encoding:>
<META content="MSHTML 6.00.6000.16414" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=776041817-19022007><FONT face=Arial 
color=#0000ff size=2>Yes, but usually I see that used with properties of the 
Result class. How can I use that with the Result class 
itself?</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> larry.meadors@gmail.com 
[mailto:larry.meadors@gmail.com] <B>On Behalf Of </B>"Larry Meadors" 
&lt;lmeadors@apache.org&gt;<BR><B>Sent:</B> Monday, February 19,
2007 5:10 
AM<BR><B>To:</B> user-java@ibatis.apache.org<BR><B>Subject:</B>
Re: ResultMap 
and Result class<BR></FONT><BR></DIV>
<DIV></DIV>You'll need a discriminator. <BR><BR>Larry <BR><BR><BR>On
2/19/07, 
Christopher.Mathrusse@sybase.com <BR><CHRISTOPHER.MATHRUSSE@SYBASE.COM>wrote:

<BR>&gt; <BR>&gt; <BR>&gt; I have a class named Message which
has a type 
(REQUEST, CONFIRM) based upon <BR>&gt; an enum. I want to be able to define the

Message class as abstract and <BR>&gt; define RequestMessage and ConfirmMessage

classes. Based upon a select from <BR>&gt; the Message table and the type value

contained within the type column, I <BR>&gt; would like to be able to return the

specific type listed above. Any <BR>&gt; suggestions as to how I might be able 
to accomplish this? <BR>&gt; <BR>&gt; Thanks... <BR>&gt; <BR>&gt;
Chris 
Mathrusse <BR>&gt; christopher.mathrusse@sybase.com <BR>&gt; (925) 236-5553

<BR>&gt; <BR><BR></BODY></HTML>


Mime
View raw message