how to update and delete a record in hibernate one to one mapping?
问题 Can any one please show me an example to update and delete a record in one to one hibernate mapping? I have 2 tables customer and customeraddress. I am able to add record in both tables using following code customerForm.setcustomerAddress(customerAddress); customerAddress.setCustomer(customerForm); getEntityManager().persist(customerForm); Now I want to delete and update the record. @Entity @Table(name="customers") public class Customer { @Id @GeneratedValue(strategy = IDENTITY) @Column(name=