dbTalk Databases Forums  

Problem with OJB and Inheritance hierarcy

comp.databases.object comp.databases.object


Discuss Problem with OJB and Inheritance hierarcy in the comp.databases.object forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Tellurik
 
Posts: n/a

Default Problem with OJB and Inheritance hierarcy - 09-08-2006 , 10:25 AM






Hi,

I am using OJB for the first time. I have three tables, say T1, T2 and
T3. These tables are the ER representation of three java classes C1, C2
and C3. From the object orientation point of view C1 is the super class
of the other two.
When I had to map the classes with the tables I've used the "table per
subclass" method (map every subclass to a distinct table).

The problem is :
when I try to delete an Object of class C2 I expect that OJB delete the
C2 object and even the referenced C1 object. But this does not happens.

How could I achieve this behaviour?

Thanks
Vincent


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.3
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.