Hi.
I have an optional OneToOne relationship between my entities and since it is optional i want to have several records in the underlying table with this relation set to NULL.
@Entity...
@Table(name = "A, uniqueConstraints = {})
public class A {
@OneToOne(optional = true)
@JoinColumn(name = "b_id", unique = false, nullable = true)
private B b;
}
So it's a @ManyToOne, not a @OneToOne