Skip to content
New issue

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

By clicking “#”, you agree to our terms of service and privacy statement. Weโ€™ll occasionally send you account related emails.

Already on GitHub? # to your account

๐Ÿ”ง Notification ํ…Œ์ด๋ธ”์ด ๊ฐ€์ ธ์•ผ ํ•˜๋Š” ์ •๋ณด #135

Open
3 tasks
psychology50 opened this issue Jul 17, 2024 · 0 comments

Comments

@psychology50
Copy link
Member

์ˆ˜์ • ๋ชฉ์ 

์ˆ˜์ • ์ฝ”๋“œ

public class Notification extends DateAuditable {
    ...

    @ManyToOne(fetch = FetchType.LAZY)
    @JoinColumn(name = "receiver")
    private User receiver;
    private String receiverName;
}

ํ•  ์ผ ๋ชฉ๋ก

  • ์†ก์‹ ์ž์˜ ์ •๋ณด๊ฐ€ ๋ณ€๊ฒฝ๋˜์—ˆ์„ ๋•Œ, ํ‘ธ์‹œ ์•Œ๋ฆผ๋„ ์‹ ์„ ๋„๋ฅผ ์œ ์ง€์‹œํ‚ฌ ํ•„์š”๊ฐ€ ์žˆ๋Š” ์ง€ ๋…ผ์˜
    • ๋งŒ์•ฝ ํ•„์š”ํ•˜๋‹ค๋ฉด, join, ์ถ”๊ฐ€ query, caching ์ค‘ ์–ด๋–ค ์ „๋žต์„ ์„ ํƒํ•  ์ง€ ๋…ผ์˜
  • ๊ฒฐ์ •ํ•œ ๋ฐฉ๋ฒ•์œผ๋กœ ์ฝ”๋“œ ๋ฆฌํŒฉํ† ๋ง

์„ค๋ช…

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant