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#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...