One to Many Relationship in spring boot REST Api
问题 I am using spring boot to create a REST API. In this API, I have a One to Many relationship between check-in and Guests . I created a controller for check-in and use that save function of spring JPA. The save method is updating both checkin and guest tables but for the guest table, the check-in foreign key in the guests table is not getting added instead showing as null. Please someone help me. I need to create both guests and checkin simultaneously. Check-in Model @Data @Entity public class