[jboss-user] [EJB 3.0] - Re: SOS
zhuhuapeng@gmail.com
do-not-reply at jboss.com
Tue Aug 26 12:15:58 EDT 2008
i have resolved this problem,
ROrganizationService
| public int deleteObj(int id) {
| OrganizationEO org = queryByID(id);
| if(null != org && null != org.getParentObj())
| {
| OrganizationEO superOrg = queryByID(org.getParentObj().getId());
| if(null != superOrg && null != superOrg.getSonOrgs())
| {
| superOrg.getSonOrgs().remove(org);
| em.merge(superOrg);
| }
| }
| return CommonDBAction.deleteObjById(id, em, org);
| }
|
because of the parentOrganization who referenced to current Organization,it is impossable to delete current organization.now it can runs well..
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4172644#4172644
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4172644
More information about the jboss-user
mailing list