Yes. Make sure your abstract class is defined as extent:

      <collection-descriptor
         name="items"
         element-class-ref="BaseClass"
      >
...

   <class-descriptor class="BaseClass">
      <extent-class class-ref="ConcreteClassA"/>
      <extent-class class-ref="ConcreteClassB"/>
  </class-descriptor>

http://db.apache.org/ojb/tutorial3.html#Extents%20and%20Polymorphism


----- Original Message ----- 
From: "Maksimenko Alexander" <[EMAIL PROTECTED]>
To: "OJB Users List" <[EMAIL PROTECTED]>
Sent: Wednesday, May 26, 2004 12:33 PM
Subject: Polymorphism in collections 


> Hi!
> Is it possible to specify in "element" attribute in the collection 
> descriptor an abstract class?
> I tried to do this but unsuccessfully :(
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to