Posts by Flavio Oliveira • 1 point
1 post
-
-1
votes4
answers11232
viewsA: JPA Object References an Unsaved Transient instance - save the Transient instance before Flushing :
Just reverse and save the customer first and then the address: addressRepository.saveAll(Arrays.asList(E1, E2)); clientRepository.saveAll(Arrays.asList(cli1)); switch to:…