๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ

GAB STORY

์ผ์ƒ ์† ์†Œ์†Œํ•œ ์ˆœ๊ฐ„๋“ค๊ณผ ๊ฐœ๋ฐœ ๊ณต๋ถ€ ๊ณผ์ •์—์„œ์˜ ๋‹ค์–‘ํ•œ ๊ฒฝํ—˜๋“ค์„ ๋‹ด์•„๋‚ธ ๊ณต๊ฐ„์ž…๋‹ˆ๋‹ค.
Interface-based Projection์—์„œ ZonedDateTime Converter ์‚ฌ์šฉ Interface-based์—์„œ Timestamp๋กœ ์„ ์–ธ๋œ ์ปฌ๋Ÿผ์„ ZonedDateTime์œผ๋กœ ๋ณ€ํ™˜ํ•˜์—ฌ ์‚ฌ์šฉํ•˜๋Š” ๋ฐฉ๋ฒ•. ์—๋Ÿฌ Cannot project java.sql.Timestamp to java.time.ZonedDateTime. Target type is not an interface and no matching Converter found! java.lang.UnsupportedOperationException: Cannot project java.sql.Timestamp to java.time.ZonedDateTime. Target type is not an interface and no matching Converter found! CREATE TABLE `table` ( `id` bigin.. 2023-02-08
JDBC Flow (HikariCP, hibernate, JPA, DataSource) JDBC Flow JDBC๋Š” ๋ฐ์ดํ„ฐ ์ ‘๊ทผ์˜ ํŽธ์˜์„ฑ๊ณผ ์ผ๊ด„์„ฑ ์ œ๊ณต์„ ์œ„ํ•œ DataAccess์™€ DB ์—ฐ๊ฒฐ๊ณผ ์ƒํ˜ธ ์ž‘์šฉ์„ ์œ„ํ•œ JDBC API๋กœ ๊ตฌ์„ฑ์ด ๋˜์–ด์žˆ์Šต๋‹ˆ๋‹ค. DataAccess DataAccess ๊ณ„์ธต์€ Repository ๋˜๋Š” DAO ํŒจํ„ด์˜ ๊ตฌํ˜„์ฒด๋ฅผ ์˜๋ฏธํ•˜๋ฉฐ, Persistence Framework ๋˜๋Š” Query Object ๋“ฑ์˜ ๊ตฌ์„ฑ ์š”์†Œ๋ฅผ ํ†ตํ•ด์„œ JDBC ๊ตฌํ˜„ ๊ณ„์ธต์ธ dataSource์™€ ์ƒํ˜ธ ์ž‘์šฉํ•ฉ๋‹ˆ๋‹ค. CRUD๋Š” Application์ด DB ๋ฐ์ดํ„ฐ๋ฅผ ์ง์ ‘ ๋‹ค๋ฃจ๋Š” ๋ฐฉ์‹์„ ๋งํ•˜๋ฉฐ Persistence Framework๋Š” Framework๋ฅผ ์ด์šฉํ•˜์—ฌ ์ง๊ฐ„์ ‘์ ์œผ๋กœ DB ๋ฐ์ดํ„ฐ๋ฅผ ๋‹ค๋ฃจ๋Š” ๋ฐฉ์‹์„ ์˜๋ฏธํ•ฉ๋‹ˆ๋‹ค. Persistence Framework Persistence Framework๋Š” SQL๋ฌธ์œผ๋กœ.. 2023-01-30