can somebody confirm me following?
I have following Entites:
public class Book {
.............
}
public class Student {
@OneToOne
Book favoriteBook
}
public class StudentOrderHistory{
Student student;
@OneToOne
Book lastBook;
}
In case if favoriteBook / lastBook is linked only to each one Student or StudentOrderHistory is both then still a @OneToOne relation or would it a @ManyToOne Relation because the same BookEntity is linked in several Entites (here Student and StudentOrderHistory)?
Is it correct that @ManyToOne would be more in case e.g the same book is the favoriteBook for different Students?