Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2017
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. public void create(T model) throws SQLException {
  2. Session session = null;
  3. try {
  4. session = getSession();
  5. session.beginTransaction();
  6. logger.info("DAO Create");
  7. session.save(model);
  8. session.getTransaction().commit();
  9. } catch (Exception e) {
  10.  
  11. } finally {
  12. }
  13. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement