Thank you. It seems to be enough, I will try it. > Hi shivaken, > > did you read the tutorial on mapping inheritance hierarchies with OJB > already? > http://db.apache.org/ojb/tutorial3.html#mapping%20inheritance%20hierarchies > > and in particular: > > http://db.apache.org/ojb/tutorial3.html#mapping%20all%20classes%20on%20the% >2 0same%20table > > cheers, > Thomas > > > -----Original Message----- > > From: shivaken [mailto:[EMAIL PROTECTED]] > > Sent: Thursday, February 20, 2003 10:33 AM > > To: OJB Users List > > Subject: newbie question: OJB cannot treat subclass as superclass? > > > > > > I'm using polymorphism around my business classes in order to add new > > subclasses dose not have unique attribute. > > So, I want to add persistence them with OJB > > and want to store in the same table. But, it seems to be difficult. > > # All subclasses don't have own field. > > > > I created a abstract Call class, and LocalCall class as a > > subclass of it. > > > > Then broker.store(localCall) causes > > org.apache.ojb.broker.metadata.ClassNotPersistenceCapableException: > > com.mydomain.LocalCall not found in OJB Repository > > > > I know persistent classes has to have default (no parameter) > > constructor. > > # They seem to be constructed with that. Then, abstract class > > cannot be used > > # with OJB. > > > > Are there any good ways? > > > > -- shivaken > > > > > > --------------------------------------------------------------------- > > 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]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
