Created
June 20, 2019 13:22
-
-
Save saqibmehmoodgit/5e40df1bfdf9f76170d9059b53140606 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User user = new User(); | |
/// all setters of user. | |
List<ContactDto> contactDtos = new ArrayList<ContactDto>(); | |
ContactDto contact = new ContactDto(); | |
contact.set //// all setters of ContactDto | |
ContactDto contact2 = new ContactDto(); | |
contact2.set //// all setters of ContactDto | |
contactDtos.add(contact); | |
contactDtos.add(contact2); | |
user.setContacts(contactDtos); | |
entitymanger.save(user); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment