Entity Bean question# Java - 爪哇娇娃
r*r
1 楼
using CMP , there are two Entity beans , E1 and E2 .
E1 has a foreign key reference to E2.
when calling E1.remove() , got an ejb exception , saying " can not updat
e Table 1 to NULL, because Table 1 set "NOT NULL" constraints.
How to fix that ? I do not want to remove any constraints from the schem
a.
THx
E1 has a foreign key reference to E2.
when calling E1.remove() , got an ejb exception , saying " can not updat
e Table 1 to NULL, because Table 1 set "NOT NULL" constraints.
How to fix that ? I do not want to remove any constraints from the schem
a.
THx