Sejong-Java-Study / gonghak98

https://gonghak98.com
1 stars 1 forks source link

refactor: GonghakRepository ๋ฆฌํŒฉํ† ๋ง #59

Closed whxogus215 closed 2 months ago

whxogus215 commented 2 months ago

๐Ÿ”ง์—ฐ๊ฒฐ๋œ ์ด์Šˆ

๐Ÿ› ๏ธ์ž‘์—… ๋‚ด์šฉ

๐Ÿคทโ€โ™‚๏ธPR์ด ํ•„์š”ํ•œ ์ด์œ 

GonghakCoursesDao์˜ ๋ฉ”์„œ๋“œ๋Š” ํ˜„์žฌ JPQL์„ ์‚ฌ์šฉํ•œ ์ฟผ๋ฆฌ ๋ฉ”์„œ๋“œ๋ฅผ ๊ฐ–๊ณ  ์žˆ์Šต๋‹ˆ๋‹ค. ํ•ด๋‹น JPQL์„ ํ†ตํ•ด ์ฟผ๋ฆฌ ๋ฉ”์„œ๋“œ๊ฐ€ ์–ด๋– ํ•œ ์กฐ๊ฑด์œผ๋กœ ๋ฐ์ดํ„ฐ๋ฅผ ๋ถˆ๋Ÿฌ์˜ค๊ณ  ์žˆ๋Š”์ง€ ์ถฉ๋ถ„ํžˆ ๋ณด์—ฌ์ฃผ๊ณ  ์žˆ๋‹ค๊ณ  ์ƒ๊ฐํ–ˆ์Šต๋‹ˆ๋‹ค.

๊ฒฐ๊ตญ, ์‚ฌ์šฉ์ž๊ฐ€ ์ด์ˆ˜ํ•˜๊ฑฐ๋‚˜ ์ด์ˆ˜ํ•˜์ง€ ์•Š์€ ๊ณตํ•™์ธ์ฆ ๊ณผ๋ชฉ์„ ๊ฐ€์ ธ์˜ค๋Š” ๋ฉ”์„œ๋“œ์ด๊ธฐ์— ์ข€ ๋” ์ง๊ด€์ ์ธ ์ด๋ฆ„์„ ๋ถ€์—ฌํ•จ๊ณผ ๋™์‹œ์— ๋ฉ”์„œ๋“œ์˜ ๊ธธ์ด๋ฅผ ์ค„์ด๋Š”๊ฒŒ ์ฝ”๋“œ๋ฅผ ์ฝ๋Š”๋ฐ์—๋„ ๋” ํŽธ๋ฆฌํ•  ๊ฒƒ ๊ฐ™์•„์„œ ๋ฉ”์„œ๋“œ ์ด๋ฆ„์„ ๋‹ค์Œ๊ณผ ๊ฐ™์ด ์ˆ˜์ •ํ•˜์˜€์Šต๋‹ˆ๋‹ค.

โœ”๏ธPR ์ฒดํฌ๋ฆฌ์ŠคํŠธ

jiseop121 commented 2 months ago

findUserCoursesByMajorByGonghakCoursesWithoutCompleteCourses -> findUserInCompletedCourses

ํŠนํžˆ ์œ„์™€ ๊ฐ™์€ ๋ณ€์ˆ˜๋ช… ์ฒ˜์น˜๊ณค๋ž€์ด์—ˆ๋Š”๋ฐ ์ž˜ ์ค„์—ฌ์ฃผ์…”์„œ ๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค...ใ… ใ… 

whxogus215 commented 2 months ago

๊ฐ์‚ฌํ•ฉ๋‹ˆ๋‹ค ใ…Žใ…Ž