Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void create(T model) throws SQLException {
- Session session = null;
- try {
- session = getSession();
- session.beginTransaction();
- logger.info("DAO Create");
- session.save(model);
- session.getTransaction().commit();
- } catch (Exception e) {
- } finally {
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement