172173174175176177178179
return (T) sessionFactory.getCurrentSession().merge(entity); } protected void delete(Info entity) { Session session = sessionFactory.getCurrentSession(); Info attached = (Info) session.merge(entity); session.delete(attached); }
942943944945946947948949950951952
this.id = id; } @Override public Info call() throws Exception { Info info; try { info = template.queryForObject("select blob from object where id = :id", ImmutableMap.of("id", id), configRowMapper); } catch (EmptyResultDataAccessException noSuchObject) { return null;
122123124125126127128129130131132
for (int i = 0; i < propertyNames.length; i++) { propertyNamesChanged.add(propertyNames[i]); } } Info info = (Info) entity; Event e = new Event(info, propertyNamesChanged); if (events.get() == null) { events.set(new ArrayList()); }