public void delete() throws Exception { UserRoleEntity entity = new UserRoleEntity(); entity.setUserRoleId(Integer.valueOf(6)); this.service.delete(entity); entity = this.service.queryForObject(entity); if (entity != null) System.out.println("ɾ����ѯ��" + entity.toString()); else System.out.println("ɾ����ѯ�� ������"); }
public void update() throws Exception { UserRoleEntity entity = new UserRoleEntity(); entity.setUserRoleId(Integer.valueOf(5)); entity.setUserId(Integer.valueOf(2)); this.service.update(entity); entity = this.service.queryForObject(entity); System.out.println("���º��ѯ��" + entity.toString()); }