ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <lmead...@apache.org>
Subject Re: ResultMap and Result class
Date Mon, 19 Feb 2007 13:09:47 GMT
You'll need a discriminator.

Larry


On 2/19/07, Christopher.Mathrusse@sybase.com
<Christopher.Mathrusse@sybase.com> wrote:
>
>
> I have a class named Message which has a type (REQUEST, CONFIRM) based upon
> an enum. I want to be able to define the Message class as abstract and
> define RequestMessage and ConfirmMessage classes. Based upon a select from
> the Message table and the type value contained within the type column, I
> would like to be able to return the specific type listed above. Any
> suggestions as to how I might be able to accomplish this?
>
> Thanks...
>
> Chris Mathrusse
> christopher.mathrusse@sybase.com
> (925) 236-5553
>

Mime
View raw message