コード例 #1
0
 @Override
 public ResearchFilesDTO getResearchFiles(long research_id) {
   SocioResearch dsResearch;
   ResearchFilesDTO dto;
   try {
     dsResearch = em.find(SocioResearch.class, research_id);
     dto = dsResearch.toFilesDTO(em);
   } finally {
   }
   return dto;
 }
コード例 #2
0
 @Override
 public SocioResearchFilesDTO getResearchFilesInCategory(long research_id, String category) {
   // WTF???????????//
   SocioResearch dsResearch, detached;
   ResearchFilesDTO dto;
   SocioResearchFilesDTO dto2;
   try {
     dsResearch = em.find(SocioResearch.class, research_id);
     // dsResearch.addFile(id_file, desc);
     dto = dsResearch.toFilesDTO(em);
     dto2 = new SocioResearchFilesDTO();
     dto2.setFiles_ids(dto.getFileIds(category));
     dto2.setFiles_descs(dto.getFileNames(category));
   } finally {
   }
   return dto2;
 }