OneToMany

SpringBoot

OneToMany 매핑 시 mappedBy 옵션 사용하여야하는 이유

문제 발생 Notice.kt class Notice { ... @OneToMany var languageUsage: MutableList = ArrayList() protected set ... } LanguageUsage.kt //TimeEntity는 JPA Auditing 기능임. class LanguageUsage: TimeEntity(), Persistable, Serializable { ... @Id @ManyToOne @JoinColumn(name = "language_id", nullable = false) val language: Language = language @Id @ManyToOne @JoinColumn(name = "notice_id", nullable = false) val n..

xlwdn98767
'OneToMany' 태그의 글 목록