3031323334353637383940
fol.setName("books"); doc.setOwner(o); doc.setFolder(fol); doc.setSizeKb(SIZE_IN_KB); fol.getDocuments().add(doc); s.persist(o); s.persist(fol); t.commit(); s.close(); s = getFactory().openSession();
3132333435363738394041
doc.setOwner(o); doc.setFolder(fol); doc.setSizeKb(SIZE_IN_KB); fol.getDocuments().add(doc); s.persist(o); s.persist(fol); t.commit(); s.close(); s = getFactory().openSession(); t = s.beginTransaction();
357358359360361362363364365366367
customer.setContacts(contacts); Session s = openSession(); s.getTransaction().begin(); s.persist(customer); s.getTransaction().commit(); s.close(); return customer; } finally {