I am using CascadeType.MERGE but the generated sql does not contain any ON UPDATE in the foreign key. Here is my code
@Entity
public class Address {
@Id
private int id;
private String address;
}
@Entity
public class Employee {
@Id
private int empId;
@OneToOne(cascade = CascadeType.MERGE)
private Address address;
}
Is there anything missing here