entity

  • ์‹๋ณ„์ž๋ฅผ ๊ฐ€์ง€๋Š” ๊ฐœ์ฒด

  • ๋ฐ์ดํ„ฐ๋ฒ ์ด์Šค์™€ ๋งž๋ฌผ๋ฆฌ๊ธฐ๋„ ํ•˜๋Š”๋“ฏ.

  • Hibernate Entity is a Java object that is instantiated, tracked, persisted, discarded and garbage collected

  • ํ•˜์ด๋ฒ„๋„ค์ดํŠธ์—์„œ ์ •์˜๋œ ์—”ํ‹ฐํ‹ฐ๋Š” ์ž๋ฐ” ๊ฐ์ฒด๋กœ ์ถ”์ , ์ €์žฅ, ์‚ญ์ œ๋“ฑ์ด ๊ฐ€๋Šฅํ•œ ๊ฐ์ฒด๋ฅผ ์ผ์ปซ๋Š”๋“ฏ

DDD Entity is an abstract thing, if defines an idea (a pattern) and gives guidelines of what this idea is and what it represents

  • ๋ฐ˜๋ฉด DDD๋ผ๋Š” ์ฒ ํ•™์—์„œ ์ •์˜๋œ ์—”ํ‹ฐํ‹ฐ๋Š” ์ถ”์ƒ์ ์ธ ๊ฒƒ.

  • ์•„์ด๋””์–ด๋‚˜ ๊ทธ๊ฑธ ์–ด๋–ป๊ฒŒ ๋‚˜ํƒ€๋‚ผ์ง€์— ๋Œ€ํ•œ ๊ฐ€์ด๋“œ๋ผ์ธ์„ ์ฃผ๋Š” ์ถ”์ƒ์ ์ธ ๊ฒƒ์„ ์˜๋ฏธํ•˜๋Š”๋“ฏ.

์ •๋ฆฌ

Domain and Entity are different functions. Domain model has-an entity

  • [[domain]]์ด ์ข€ ๋” ๋ฒ”์œ„๊ฐ€ ๋„“์€ ์ถ”์ƒ์ ์ธ ์˜๋ฏธ.

  • [[entity]] ๋Š” ๋„๋ฉ”์ธ์„ ๊ธฐ๋ฐ˜์œผ๋กœ ์ •์˜๋œ ๊ฒƒ.

์ฐธ๊ณ 

Last updated