How to create non containment association between two existing objects ?
For example, lets assume the following relationship is a non containment
association i.e. both objects can exist independently of each other -
------------ ----------
|DEPARTMENT| 1______________* |EMPLOYEE|
------------ ----------
Playing with samples code I have noticed that in order to create
association between two object they need to be part of the same data
graph generated by a single query. So for the following line to work -
department.getList("employees").add(customer)
both 'department' and 'employee' dataobjects must be under same root
DataObject instance. To achieve this I tried to do a full outer join
between DEPARTMENT and EMPLOYEE but it is not supported by derby or
hsql. The equivalent union result is not typed to DEPARTMENT and
EMPLOYEE by DAS. The other option is to set the foreign key value
explicitly in the 'employee' object, but it is not desirable. Any other
ideas ?
-Umesh Tyagi
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]