Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#109] Error Handler 제거 #114

Merged
merged 2 commits into from
May 17, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,5 @@ public interface RebornRepository extends JpaRepository<Reborn, Long>, JpaSpecif

Optional<Reborn> findByPetAndDate(Pet pet, Integer date);

Optional<Reborn> findByPetAndDateLessThan(Pet pet, Integer date);
Reborn findByPetAndDateLessThan(Pet pet, Integer date);
}
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public Reborn createReborn(Pet pet) {

@Transactional
public Reborn findByPetAndDateLessThanSorted(Pet pet, Integer date) {
return rebornRepository.findByPetAndDateLessThan(pet, date)
.orElseThrow(() -> GeneralException.of(ErrorCode.REBORN_NOT_FOUND));
return rebornRepository.findByPetAndDateLessThan(pet, date);
}

@Transactional
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/application.yml
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ spring:
# show_sql: true
use_sql_comments: true
hbm2ddl:
auto: create
auto: update
default_batch_fetch_size: 1000
# data:
# redis:
Expand Down
Loading