Тэги:
#JPA #Hibernate #OneToMany #one-to-many #relationship #mapping #associationКомментарии:
Excellent quality content, thank you!
ОтветитьI find your JPA/Hibernate tutorials the best ever, thank you!
Ответитьthank you for this tutorial Sir, I was looking for Utility methods and its working, now I have one question. I am using Spring Data JPA, I have Class name Hotel in which I have MenuItem [OnetoMany ], DeliveryPartner [ManyToMany] and Address [ OneToOne ], I also added Add Remove utility methods for these on Parent Hotel Entity , now when I am editing hotel by adding just one 'Delivery' in Set<> and call Hotel.save() it will call save Hotel Method and then it executes 14 insert statements, as its is executing AddDelivery(), AddMenu() AddAddress() just to save one delivery it call's all the add Utility methods. Is there better any solution ?
Ответить