Rev 2018 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2018 | Rev 2019 | ||
---|---|---|---|
Line 50... | Line 50... | ||
50 | p.setSeccoes(new 1.5.0/docs/api/java/util/ArrayList.html">ArrayList()); |
50 | p.setSeccoes(new 1.5.0/docs/api/java/util/ArrayList.html">ArrayList()); |
51 | p.getSeccoes().add(seccao); |
51 | p.getSeccoes().add(seccao); |
52 | seccao.setPagina(p); |
52 | seccao.setPagina(p); |
53 | 53 | ||
54 | 54 | ||
55 | - | ||
56 | - | ||
57 | - | ||
58 | HibernateUtils.getCurrentSession().connection().commit(); |
55 | HibernateUtils.getCurrentSession().connection().commit(); |
59 | 56 | ||
60 | 57 | ||
61 | Session sess = HibernateUtils.getCurrentSession(); |
58 | Session sess = HibernateUtils.getCurrentSession(); |
62 | sess.beginTransaction(); |
59 | sess.beginTransaction(); |