You'll need a discriminator.

Larry


On 2/19/07, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> 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
[EMAIL PROTECTED]
(925) 236-5553

Reply via email to