Skip to content

Commit

Permalink
[HOTFIX] transactional modify
Browse files Browse the repository at this point in the history
- transactional modify
  • Loading branch information
himodu committed May 22, 2024
1 parent 5ab9ac8 commit 79adeda
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ public class BoothServiceImpl implements BoothService{
private final UserService userService;

@Override
@Transactional(readOnly = true)
public AllBooth getAllbooth(String userHash) {

List<BoothEntity> boothes = boothrepository.findAll();
Expand Down Expand Up @@ -76,7 +75,6 @@ public AllBooth getAllbooth(String userHash) {
}

@Override
@Transactional(readOnly = true)
public BoothDetail getBooth(int boothnum, String categori, String userHash) {
Optional<BoothEntity> boothOp = boothrepository.findByBoothnumAndCategori(boothnum, categori);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ public class CommentServiceImpl implements CommentService{


@Override
@Transactional(readOnly = true)
public List<Comment> getCommentPage(int boothNum, String categori, int page, String userHash) {

Optional<BoothEntity> boothOp = boothRepository.findByBoothnumAndCategori(boothNum, categori);
Expand Down Expand Up @@ -64,7 +63,6 @@ public List<Comment> getCommentPage(int boothNum, String categori, int page, Str
}

@Override
@Transactional
public Long postComment(int boothNum, String categori, CommentRequest commentRequest, String userHash) {

UserEntity user = userService.getUserByHash(userHash);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ public class UserCountServiceImpl implements UserCountService {
private final UserCountRepository userCountRepository;

@Override
@Transactional(readOnly = true)
public Long getUserCount() {

Optional<UserCountEntity> userCountEntity = userCountRepository.findById(1L);
Expand Down

0 comments on commit 79adeda

Please sign in to comment.