Skip to content

Commit

Permalink
🐛 fix: add readonly transactional
Browse files Browse the repository at this point in the history
  • Loading branch information
seonghun-dev committed May 25, 2023
1 parent 926b9ff commit 1c6b661
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,15 @@
import lombok.RequiredArgsConstructor;
import org.locationtech.jts.geom.Point;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

@Service
@RequiredArgsConstructor
public class VillageAreaService {

private final VillageAreaRepository villageAreaRepository;

@Transactional(readOnly = true)
public VillageArea getVillageByLocationPoint(Point point) {
return villageAreaRepository.findVillageByLocationPoint(point);
}
Expand Down

0 comments on commit 1c6b661

Please sign in to comment.