์šฉ์–ด์ •๋ฆฌ - DTO vs VO / DAO / POJO

DTO vs VO (Data Transfer Object / Value Object) ์šฉ๋„๋Š” ๋น„์Šทํ•˜๋‚˜, ๊ฐ„๋‹จํžˆ DTO๋Š” variable / VO๋Š” value ๊ฐ™์€ ๋Š๋‚Œ ๋˜๋‹ค๋ฅธ ํ‘œํ˜„์œผ๋กœ๋Š”, DTO๋Š” Instance / VO๋Š” Literal ๊ฐ™์€ ๋Š๋‚Œ (๋Š๋‚Œ๋งŒ!) DTOVOData Transfer ObjectValue Objectํ”„๋กœ์„ธ์Šค๊ฐ„ ๋ฐ์ดํ„ฐ๋ฅผ ์ „๋‹ฌํ•˜๋Š” ๊ฐ์ฒด๊ฐ„๋‹จํ•œ ๋…๋ฆฝ์ฒด(Entity)๋ฅผ ์˜๋ฏธํ•˜๋Š” ์ž‘์€ ๊ฐ์ฒด์‚ฌ์‹ค์ƒ ์šฉ๋„๋Š” ๋‘˜๋‹ค ๋„๋ฉ”์ธ๋‹จ์œ„์˜ ๋ฐ์ดํ„ฐ๋ฅผ ์ €์žฅํ•˜๋Š” ๋น„์Šทํ•œ ์šฉ๋„์ƒํƒœ ๋ณ€๊ฒฝ ๊ฐ€๋ŠฅRead-Only : ํ•œ๋ฒˆ ๊ฐ’์„ ์ดˆ๊ธฐํ™”ํ•˜๋ฉด ๋ณ€๊ฒฝ๋ถˆ๊ฐ€Business logic๊นŒ์ง€ ๋‹ด์•„์„œ ์‚ฌ์šฉํ•˜๊ธฐ๋„.equals()๋กœ ๋น„๊ตํ• ๋•Œ, ๋ชจ๋“  ๊ฐ’์„ ๋น„๊ตํ•ด์•ผํ•œ๋‹คex) ๋ณดํ†ต "CarDto"์™€ ๊ฐ™์ด ํด๋ž˜์Šค์ด๋ฆ„์— ์ ‘๋ฏธ์‚ฌ๋กœ ์šฉ๋„๋ฅผ ๋‚˜ํƒ€๋‚ธ๋‹ค ์ตœ๋Œ€ํ•œ ..

General, Java 2019. 9. 14. 14:31
๊ณต์ง€์‚ฌํ•ญ
์ตœ๊ทผ์— ์˜ฌ๋ผ์˜จ ๊ธ€
์ตœ๊ทผ์— ๋‹ฌ๋ฆฐ ๋Œ“๊ธ€
Total
Today
Yesterday
๋งํฌ
ยซ   2024/11   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30
๊ธ€ ๋ณด๊ด€ํ•จ