@Test public void testGetModelFamilyByID() { try { ModelFamilyDTO modelFamily = modelFamilyResourceFacadeImp.getModelFamilyByID(modelFamilyDTO.getModelFamilyId()); assertNotNull(modelFamily); } catch (PropertyNotSetException e) { logger.error("PropertyNotSetException while executing testGetModelFamilyByID "+e.getMessage()); } }
@Override public ModelFamilyDTO getModelFamilyByID(Long id) throws PropertyNotSetException { ModelFamily mf = this.getById(id); Hibernate.initialize(mf.getModels()); Hibernate.initialize(mf.getNominalAttribute()); return mf != null ? new ModelFamilyDTO(mf) : null; }
ModelFamilyResourceFacadeImp extends CoreDBServiceFacadeImp<ModelFamily, Long> implements ModelFamilyResourceFacade { @Override public ModelFamilyDTO getModelFamilyByID(Long id) throws PropertyNotSetException { ModelFamily mf = this.getById(id); Hibernate.initialize(mf.getModels()); Hibernate.initialize(mf.getNominalAttribute()); return mf != null ? new ModelFamilyDTO(mf) : null; } }
ModelFamilyResourceFacadeImp extends CoreDBServiceFacadeImp<ModelFamily, Long> implements ModelFamilyResourceFacade { @Override public ModelFamilyDTO getModelFamilyByID(Long id) throws PropertyNotSetException { ModelFamily mf = this.getById(id); Hibernate.initialize(mf.getModels()); Hibernate.initialize(mf.getNominalAttribute()); return mf != null ? new ModelFamilyDTO(mf) : null; } ModelFamilyResourceFacadeImp(); }
ModelFamilyResourceFacadeImp extends CoreDBServiceFacadeImp<ModelFamily, Long> implements ModelFamilyResourceFacade { @Override public ModelFamilyDTO getModelFamilyByID(Long id) throws PropertyNotSetException { ModelFamily mf = this.getById(id); Hibernate.initialize(mf.getModels()); Hibernate.initialize(mf.getNominalAttribute()); return mf != null ? new ModelFamilyDTO(mf) : null; } ModelFamilyResourceFacadeImp(); @Override List<ModelFamilyDTO> getAllModelFamilies(); @Override List<ModelFamilyDTO> getAllModelFamiliesByCrisis(Long crisisID); @Override ModelFamilyDTO getModelFamilyByID(Long id); @Override boolean addCrisisAttribute(ModelFamilyDTO modelFamily); @Override boolean deleteModelFamily(Long modelFamilyID); @Override List<TaggersForCodes> getTaggersByCodes(final List<String> codes); @Override List<ModelWrapper> getModelFamilyAggregateDataForCollection(Long collectionId); }
ModelFamilyResourceFacadeImp extends CoreDBServiceFacadeImp<ModelFamily, Long> implements ModelFamilyResourceFacade { @Override public ModelFamilyDTO getModelFamilyByID(Long id) throws PropertyNotSetException { ModelFamily mf = this.getById(id); Hibernate.initialize(mf.getModels()); Hibernate.initialize(mf.getNominalAttribute()); return mf != null ? new ModelFamilyDTO(mf) : null; } ModelFamilyResourceFacadeImp(); @Override List<ModelFamilyDTO> getAllModelFamilies(); @Override List<ModelFamilyDTO> getAllModelFamiliesByCrisis(Long crisisID); @Override ModelFamilyDTO getModelFamilyByID(Long id); @Override boolean addCrisisAttribute(ModelFamilyDTO modelFamily); @Override boolean deleteModelFamily(Long modelFamilyID); @Override List<TaggersForCodes> getTaggersByCodes(final List<String> codes); @Override List<ModelWrapper> getModelFamilyAggregateDataForCollection(Long collectionId);  }