@Override
	public void deleteUserinfo(Integer id) {
		// TODO Auto-generated method stub
		Userinfo ui = userinfoDAO.findById(id);
		if (ui != null) {
	
			userinfoDAO.delete(ui);
			List<Managedbugs> managedbugsList = managedbugsDAO.findByUserInfoId(id);
			
			for (Managedbugs managedbugs : managedbugsList) {
				
				Buginfo bi = buginfoDAO.findById(managedbugs.getBugInfoId());
				if (bi != null) {
					buginfoDAO.delete(bi);
				}
				
				managedbugsDAO.delete(managedbugs);
			}
			
			List<Ownerbugs> ownerbugsList = ownerbugsDAO.findByUserInfoId(id);
			for (Ownerbugs ownerbugs : ownerbugsList) {
				ownerbugsDAO.delete(ownerbugs);
				Buginfo bi = buginfoDAO.findById(ownerbugs.getBugInfoId());
				if (bi != null) {
					buginfoDAO.delete(bi);
				}
				
				ownerbugsDAO.delete(ownerbugs);
			}
		
		}
	}