@Test public void testDeleteModelNominalLabel() { try { int recordsDeleted = modelNominalLabelResourceFacadeImp.deleteModelNominalLabel(modelNominalLabel); assertTrue("Records deleted", recordsDeleted == 1); } catch (PropertyNotSetException e) { logger.error("PropertyNotSetException while executing testDeleteModelNominalLabel "+e.getMessage()); } }
@Override public Integer deleteModelNominalLabel(ModelNominalLabelDTO modelNominalLabel) throws PropertyNotSetException { if (modelNominalLabel != null) { ModelNominalLabel managed = em.merge(modelNominalLabel.toEntity()); em.remove(managed); return 1; } return 0; }
ModelNominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<ModelNominalLabel, Long> implements ModelNominalLabelResourceFacade { @Override public Integer deleteModelNominalLabel(ModelNominalLabelDTO modelNominalLabel) throws PropertyNotSetException { if (modelNominalLabel != null) { ModelNominalLabel managed = em.merge(modelNominalLabel.toEntity()); em.remove(managed); return 1; } return 0; } }
ModelNominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<ModelNominalLabel, Long> implements ModelNominalLabelResourceFacade { @Override public Integer deleteModelNominalLabel(ModelNominalLabelDTO modelNominalLabel) throws PropertyNotSetException { if (modelNominalLabel != null) { ModelNominalLabel managed = em.merge(modelNominalLabel.toEntity()); em.remove(managed); return 1; } return 0; } protected  ModelNominalLabelResourceFacadeImp(); }
ModelNominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<ModelNominalLabel, Long> implements ModelNominalLabelResourceFacade { @Override public Integer deleteModelNominalLabel(ModelNominalLabelDTO modelNominalLabel) throws PropertyNotSetException { if (modelNominalLabel != null) { ModelNominalLabel managed = em.merge(modelNominalLabel.toEntity()); em.remove(managed); return 1; } return 0; } protected  ModelNominalLabelResourceFacadeImp(); @Override List<ModelNominalLabelDTO> getAllModelNominalLabels(); @Override List<ModelNominalLabelDTO> getAllModelNominalLabelsByModelID(Long modelID, String crisisCode); @Override void saveModelNominalLabel(ModelNominalLabelDTO modelNominalLabel); @Override ModelNominalLabelDTO addModelNominalLabel(ModelNominalLabelDTO modelNominalLabel); @Override ModelNominalLabelDTO editModelNominalLabel(ModelNominalLabelDTO modelNominalLabel); @Override Integer deleteModelNominalLabel(ModelNominalLabelDTO modelNominalLabel); @Override ModelNominalLabelDTO getModelNominalLabelByID(Long nominalLabelID); @Override Boolean isModelNominalLabelExists(Long nominalLabelID); @Override void deleteModelNominalLabelByModelID(Long modelID); }
ModelNominalLabelResourceFacadeImp extends CoreDBServiceFacadeImp<ModelNominalLabel, Long> implements ModelNominalLabelResourceFacade { @Override public Integer deleteModelNominalLabel(ModelNominalLabelDTO modelNominalLabel) throws PropertyNotSetException { if (modelNominalLabel != null) { ModelNominalLabel managed = em.merge(modelNominalLabel.toEntity()); em.remove(managed); return 1; } return 0; } protected  ModelNominalLabelResourceFacadeImp(); @Override List<ModelNominalLabelDTO> getAllModelNominalLabels(); @Override List<ModelNominalLabelDTO> getAllModelNominalLabelsByModelID(Long modelID, String crisisCode); @Override void saveModelNominalLabel(ModelNominalLabelDTO modelNominalLabel); @Override ModelNominalLabelDTO addModelNominalLabel(ModelNominalLabelDTO modelNominalLabel); @Override ModelNominalLabelDTO editModelNominalLabel(ModelNominalLabelDTO modelNominalLabel); @Override Integer deleteModelNominalLabel(ModelNominalLabelDTO modelNominalLabel); @Override ModelNominalLabelDTO getModelNominalLabelByID(Long nominalLabelID); @Override Boolean isModelNominalLabelExists(Long nominalLabelID); @Override void deleteModelNominalLabelByModelID(Long modelID);  }