hello all.

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:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user

Reply via email to