Пример #1
0
 public Object getEntity(Class entityClass, Serializable id) {
   return template.get(entityClass, id);
 }
 public Owner findById(int id) throws DataAccessException {
   return hibernateTemplate.get(Owner.class, id);
 }