Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

πŸš€ 1단계 - Metadata #54

Open
wants to merge 5 commits into
base: djawnstj
Choose a base branch
from

Conversation

djawnstj
Copy link

@djawnstj djawnstj commented Apr 9, 2024

μ•ˆλ…•ν•˜μ„Έμš”, μ§„μ˜λ‹˜!
λ―Έμ…˜μ΄ λŠ¦μ–΄μ Έ 기간이 μ§€λ‚˜μ„œ μš”μ²­ λ“œλ ΈλŠ”λ°λ„ 리뷰 λ§‘μ•„μ£Όμ…”μ„œ λ„ˆλ¬΄ μ£„μ†‘ν•˜κ³  κ°μ‚¬ν•©λ‹ˆλ‹€γ… γ… 

μ§€λ‚œ 2λ‹¨κ³„μ—μ„œ 4단계 λ―Έμ…˜μ„ 염두에 두고 진행을 ν–ˆμ—ˆλŠ”λ°μš”,
κΈ°μ‘΄μ—λŠ” @Entity 클래슀의 정보λ₯Ό λ³€ν™˜ν•˜μ—¬ κ°–κ³ μžˆλŠ” PersistentClass λ₯Ό μ–΄λ””μ„œλ“  κ°€μ Έμ˜¬ 수 있게 PersistentClassMapping μ΄λž€ ν΄λž˜μŠ€μ— PersistentClass λ₯Ό λͺ¨μ•„두고, PersistentClassMapping 은 static λ©”μ„œλ“œλ‘œ μ „μ—­ λ³€μˆ˜μ²˜λŸΌ μ‚¬μš©ν–ˆμŠ΅λ‹ˆλ‹€.
μ΄λ²ˆμ— MetaModel 을 κ΅¬ν˜„ν•˜κ³  PersistentClassMapping 도 MetaModel 의 μƒνƒœκ°’μœΌλ‘œ 가지고 μžˆλ„λ‘ λ¦¬νŒ©ν† λ§ ν•˜λŠ” κ³Όμ •μ—μ„œ λ³€κ²½λœ μ½”λ“œκ°€ μ’€ 많게 λλ„€μš”γ… γ… 

λ―Έμ…˜μ— κ΄€λ ¨λœ μ½”λ“œ μž‘μ—…κ³Ό λ¦¬νŒ©ν† λ§ ν•˜λ©΄μ„œ λ‹¨μˆœν•˜κ²Œ μ½”λ“œλ§Œ λ³€κ²½λœ μž‘μ—… 컀밋을 λ‚˜λ¦„λŒ€λ‘œ κ΅¬λΆ„ν•˜μ˜€λŠ”λ° 보기 λΆˆνŽΈν•˜μ‹€κ±° κ°™λ‹€λŠ” 생각이 λ“œλ„€μš”γ… γ… 

그리고 μš”κ΅¬μ‚¬ν•­ 3 번이 이해가 잘 λ˜μ§€ μ•Šμ•„ 일단 κ·Έλƒ₯ 리뷰 μš”μ²­ λ“œλ¦½λ‹ˆλ‹€!
ꡳ이 μ—”ν‹°ν‹°λ₯Ό μΆ”κ°€ν•˜μ§€ μ•Šκ³ λ„ 기쑴에 가지고 있던 μ—”ν‹°ν‹°λ‘œ ν…ŒμŠ€νŠΈλ₯Ό μˆ˜ν–‰ν–ˆλŠ”λ° 더 ν•„μš”ν•œ 뢀뢄이 μžˆλ‹€λ©΄ μ•Œλ €μ£Όμ‹œλ©΄ κ°μ‚¬ν•˜κ² μŠ΅λ‹ˆλ‹€.

잘 λΆ€νƒλ“œλ¦½λ‹ˆλ‹€!

@entity κ°€ 뢙은 클래슀 정보λ₯Ό κ°€μ Έμ˜€λŠ” 역할인 EntityScanner λ₯Ό μΆ”κ°€ν–ˆλ‹€.
μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ΄ λΆ€νŠΈλ˜λŠ” μ‹œμ μ— 메타 데이터λ₯Ό λͺ¨μœΌκ³ , 전달할 역할인 MetaModel 을 κ°œλ°œν–ˆλ‹€.
MetaModel 은 μΈν„°νŽ˜μ΄μŠ€λ‘œ 좔상화 ν•˜κ³ ,
이전 2μ£Όμ°¨ λ―Έμ…˜μ„ 진행할 λ•Œ, 4μ£Όμ°¨ MetaData λ―Έμ…˜μ„ 염두해두고 λ§Œλ“  MappingMetaModel 이 MetaModel 을 κ΅¬ν˜„ν•˜λŠ” ν˜•νƒœλ‘œ λ³€κ²½ν•˜μ˜€λ‹€.
μ• ν”Œλ¦¬μΌ€μ΄μ…˜μ΄ λΆ€νŠΈλ˜λŠ” μ‹œμ μ— 메타 데이터λ₯Ό λͺ¨μœΌκ³ , 전달할 역할인 MetaModel 을 κ°œλ°œν–ˆλ‹€.
MetaModel 은 μΈν„°νŽ˜μ΄μŠ€λ‘œ 좔상화 ν•˜κ³ ,
이전 2μ£Όμ°¨ λ―Έμ…˜μ„ 진행할 λ•Œ, 4μ£Όμ°¨ MetaData λ―Έμ…˜μ„ 염두해두고 λ§Œλ“  MappingMetaModel 이 MetaModel 을 κ΅¬ν˜„ν•˜λŠ” ν˜•νƒœλ‘œ λ³€κ²½ν•˜μ˜€λ‹€.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant