| @@ -13,5 +13,5 @@ public interface TBCodeRepository extends JpaRepository<TBCode, Long>, JpaSpecif | |||
| //@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); | |||
| } | |||
| @@ -75,7 +75,7 @@ public class TBCodeServiceImpl implements TBCodeService { | |||
| @Transactional(readOnly = true) | |||
| public Optional<TBCodeDTO> findOne(Long id) { | |||
| log.debug("Request to get TBCode : {}", id); | |||
| return tbCodeRepository.findOneWithEagerRelationships(id) | |||
| return tbCodeRepository.findById(id) | |||
| .map(tBCodeMapper::toDto); | |||
| } | |||