EJB Table References?


2005-04-07 04:15:50 AM
jbuilder14
Suppose I have 2 tables like the following:
tblBarCode
BarCode_Id
BarCode_TypeId
BarCode_UPC
tblValidate
Validate_Id
Validate_Description
I have an entity bean based on tblBarCode:
BarCode
Id
TypeId
UPC
I can add a table reference to the entity bean linking the two tables on
BarCode_TypeId = Validate_Id. I can then add a field to the entity bean
called "Type" which is the Validate_Description.
If a programmer uses my entity bean, and changes "Type" to something
different, does it change the Validate_Description field, or the
BarCode_TypeId field?