Skip to content

[Fix] AttendanceService findByUserId/findByUserIdAndDate @Transactional(readOnly) 누락으로 LazyInitializationException 수정#193

Merged
xihxxn merged 1 commit into
developfrom
sihyun
Jun 7, 2026
Merged

[Fix] AttendanceService findByUserId/findByUserIdAndDate @Transactional(readOnly) 누락으로 LazyInitializationException 수정#193
xihxxn merged 1 commit into
developfrom
sihyun

Conversation

@xihxxn

@xihxxn xihxxn commented Jun 7, 2026

Copy link
Copy Markdown
Collaborator

AttendanceCode가 lazy 로딩인데, findByUserId/findByUserIdAndDate 메서드에 @transactional이 없어서 Hibernate 세션이 닫힌 상태에서 attendance.getAttendanceCode() 접근 시 no session 예외 발생.

…(readOnly) 누락으로 LazyInitializationException 수정
@vercel

vercel Bot commented Jun 7, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
piro-in Ready Ready Preview, Comment Jun 7, 2026 11:52am
piro-in-765d Ready Ready Preview, Comment Jun 7, 2026 11:52am

@xihxxn xihxxn merged commit 1d6e19f into develop Jun 7, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant