| //@Query("select tb_crop from TBCrop tb_crop left join fetch tb_crop.tbDetailUsers where tb_crop.id =:id") | //@Query("select tb_crop from TBCrop tb_crop left join fetch tb_crop.tbDetailUsers where tb_crop.id =:id") | ||||
| Optional<TBCode> findOneWithEagerRelationships(@Param("id") Long id); | |||||
| Optional<TBCode> findById(Long id); | |||||
| } | } |
| @Transactional(readOnly = true) | @Transactional(readOnly = true) | ||||
| public Optional<TBCodeDTO> findOne(Long id) { | public Optional<TBCodeDTO> findOne(Long id) { | ||||
| log.debug("Request to get TBCode : {}", id); | log.debug("Request to get TBCode : {}", id); | ||||
| return tbCodeRepository.findOneWithEagerRelationships(id) | |||||
| return tbCodeRepository.findById(id) | |||||
| .map(tBCodeMapper::toDto); | .map(tBCodeMapper::toDto); | ||||
| } | } | ||||