Hello to OJB-Users,
I started to learn how to use OJB with a little example, but here i have a problem. Maybe anyone could help.
I have 3 classes with a few attributes: abstract class benutzer; - string name - string vname - int benutzer_id - string passwort - string benutzername - string ojbConcreteClass class stduser extends benutzer; - no extra attributes yet class admin extends benutzer; - bollean benutzer;
I want to map the conrete objects stduser and admin to the 3 tables: benutzer, stduser and admin. In table benutzer, i want to have the attributes of benutzer and in stduser/admin the special attributes.
Everything works fine if benutzer is not abstract. If it is set to abstract i got the following error if i want to store a stduser:
Can't create new base class object for 'de.ba.studi.chtp.model.Benutzer'
Maybe anybody could help. I can't find a docu how to map classes extended from a abstract class.
I wonder, both of your super-references have no foreignkey, which should not work (OJB should give you an error about this, if not then there is a bug in the reading of the repository.xml). Try adding a foreignkey pointing to benutzer_id.
If that still doesn't work, then please post some more details (used OJB version, exact stacktrace etc.).
Tom
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
