/** * Creates a new file type entity from the request information. * * @param request the request * * @return the newly created file type entity */ private FileTypeEntity createFileTypeEntity(FileTypeCreateRequest request) { // Create a new entity. FileTypeEntity fileTypeEntity = new FileTypeEntity(); fileTypeEntity.setCode(request.getFileTypeCode()); return fileTypeEntity; }
/** * Creates a new file type entity from the request information. * * @param request the request * * @return the newly created file type entity */ private FileTypeEntity createFileTypeEntity(FileTypeCreateRequest request) { // Create a new entity. FileTypeEntity fileTypeEntity = new FileTypeEntity(); fileTypeEntity.setCode(request.getFileTypeCode()); return fileTypeEntity; }
/** * Creates and persists a new file type entity. * * @param fileTypeCode the file type code value * @param fileTypeDescription the description of this file type * * @return the newly created file type entity. */ public FileTypeEntity createFileTypeEntity(String fileTypeCode, String fileTypeDescription) { FileTypeEntity fileTypeEntity = new FileTypeEntity(); fileTypeEntity.setCode(fileTypeCode); fileTypeEntity.setDescription(fileTypeDescription); return fileTypeDao.saveAndRefresh(fileTypeEntity); }
fileTypeEntity.setCode(FORMAT_FILE_TYPE_CODE);
fileTypeEntity.setCode(FORMAT_FILE_TYPE_CODE);
fileTypeEntity.setCode(fileTypeCode); herdDao.saveAndRefresh(fileTypeEntity);