Guest User

Untitled

a guest
Jul 21st, 2018
73
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. Root root = new Root();
  2. root.setID(222);
  3. // Only set the list I wan't let the other fields be null and hibernate shouldn't touch them in the db
  4. List<Foo> listWhoWantsToBeMerged = new ArrayList<Foo>();
  5. listWhoWantsToBeMerged.add(new Foo("Add me to the list in db please"));
  6. root.setList(listWhoWantsToBeMerged);
  7. RootDao.mergeList(root);
Add Comment
Please, Sign In to add comment