when one entity bean extends another, does the extending entity bean's table include all of the fields of its parents in its own table?

in other words...

given:

ENTITY_B extends ENTITY_A and both are defined as follows:

ENTITY_A
-id
-name

ENTITY_B extends ENTITY_A
-email


when the tables for both entities are generated (in jboss), which way should the tables be generated:

WAY 1:
^^^^^^^^^^^
TABLE_A
-id
-name

TABLE_B
-id
-name
-email


* OR *


WAY 2:
^^^^^^^^^^^
TABLE_A
-id
-name

TABLE_B
-tableA_id
-email


?


when i deployed 2 entity beans, one extending the other, the extending bean's db table had all the fields defined of its parents' table...

thank you.


-------------------------------------------------------
This SF.net email is sponsored by: Microsoft Visual Studio.NET comprehensive development tool, built to increase your productivity. Try a free online hosted session at:
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr0003en
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to