๋ฐ˜์‘ํ˜•
[JPA] ์ƒ์†๊ด€๊ณ„ ๋งคํ•‘(2): @MappedSuperclass

์†Œ์Šค ์ฝ”๋“œ๋Š” ์—ฌ๊ธฐ ์žˆ์Šต๋‹ˆ๋‹ค. (commit hash: ba15d2d) > git clone https://github.com/lcalmsky/jpa > git checkout ba15d2d Warning: ์ตœ์ข… ์ปค๋ฐ‹ ๊ธฐ์ค€์œผ๋กœ ์ž‘์„ฑ๋˜์–ด ์žˆ์–ด ๋ชจ๋“  ํ…Œ์ŠคํŠธ ๊ฒฐ๊ณผ๋ฅผ ์ •ํ™•ํžˆ ํ™•์ธํ•  ์ˆœ ์—†์œผ๋‹ˆ ์ฐธ๊ณ  ๋ถ€ํƒ๋“œ๋ฆฝ๋‹ˆ๋‹ค. Overview ๊ฐ์ฒด๊ฐ„ ์ƒ์†์„ ์ด์šฉํ•˜์ง€๋งŒ ์‹ค์ œ๋กœ๋Š” Entity๋‚˜ Table๊ณผ ๊ด€๊ณ„๊ฐ€ ์ „ํ˜€ ์—†์„ ๋•Œ ์‚ฌ์šฉํ•˜๋Š” @MappedSuperclass์— ๋Œ€ํ•ด ์•Œ์•„๋ด…๋‹ˆ๋‹ค. @MappedSuperclass ๊ฐ์ฒด์—์„œ ๊ณตํ†ต ์†์„ฑ์„ ์ถ”์ƒ ๊ฐ์ฒด๋กœ ์ด๋™์‹œํ‚ค๊ณ  ์ž์‹ ๊ฐ์ฒด๋“ค์ด ํ•ด๋‹น ์†์„ฑ์„ ๊ณตํ†ต์œผ๋กœ ์‚ฌ์šฉํ•˜๋Š” ๊ฒƒ์€ ๋งค์šฐ ํ”ํ•œ ์ผ์ž…๋‹ˆ๋‹ค. ์ด์ „ ํฌ์ŠคํŒ…์—์„œ๋Š” Entity ๊ฐ„ ๊ด€๊ณ„(์Šˆํผํƒ€์ž…, ์„œ๋ธŒํƒ€์ž…)๋„ ์ค‘์š”ํ–ˆ์—ˆ๋Š”๋ฐ์š”, ์—ฌ๊ธฐ์„œ ๋‹ค๋ฃฐ ๋‚ด์šฉ์€ E..

JPA 2022. 7. 6. 10:30
๋ฐ˜์‘ํ˜•
๊ณต์ง€์‚ฌํ•ญ
Total
181,998
Today
35
Yesterday
551
๋งํฌ
ยซ   2022/07   ยป
์ผ ์›” ํ™” ์ˆ˜ ๋ชฉ ๊ธˆ ํ† 
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
31
๊ธ€ ๋ณด๊ด€ํ•จ