5354555657585960
public void update(T t) throws UnableToSaveException { try { getHibernateTemplate().update(t); session.getTransaction().commit(); } catch (HibernateException e) { throw new UnableToSaveException(e); } }
6263646566676869
public void save(T t) throws UnableToSaveException { try { getHibernateTemplate().save(t); session.getTransaction().commit(); } catch (HibernateException e) { throw new UnableToSaveException(e); } }
108109110111112113114115
Statement statement = connection.createStatement(); statement.executeUpdate(updateString); statement.close(); } catch (SQLException e) { throw new UnableToSaveException(e); } }
243244245246247248249250251
origin.setId(generatedKeys.getInt(1)); } generatedKeys.close(); statement.close(); } catch (SQLException e) { throw new UnableToSaveException(e); } }
3839404142434445