1 To Many Using SpringBoot +H2 Database(JPA)
ฝัง
- เผยแพร่เมื่อ 15 ต.ค. 2024
- Github: github.com/djr...
.
1 to M (By HardCoded)
• Category(1) has (Many) Books!!!
• @Transactional
. Annotation :- (1 Category and Many Books!!)
• @oneToMany+fetch+Cascade+mappedBy
• @ManyToOne +@JoinColumn
• @JsonIgnore