hi i needed help for studying for my final exam would hope some can help with it. Cascading does applies to which one of the following annotations?
A. @OneToOne
B. @OneToMany
C. @ManyToMany
D. @ManyToOne
E. A, B, C, and D
F. B, C, and D
hi i needed help for studying for my final exam would hope some can help with it. Cascading does applies to which one of the following annotations?
A. @OneToOne
B. @OneToMany
C. @ManyToMany
D. @ManyToOne
E. A, B, C, and D
F. B, C, and D
If the question is on which of the following annotations is cascading applied, the things you need to google are the annotations themselves:
e.g. ManyToMany. Looks like it has an optional element named cascade
. Now how about OneToOne? "Ooh, that's a bingo." You already have answer A and C.
And since this only answers the question without you knowing what exactly cascading is, and it's also about your final exam, I'd recommend to read again your preferred source of knowledge about cascading in JPA. It should make it more clear how is it different from the cascading of a raw database, and why this answer actually makes sense.