title: Update or SaveorUpdate in CRUDRespository, Is there any options available
body: <p>I am trying to do CRUD operations with My Entity bean. <code>CRUDRepository</code> provide standard methods to <code>find</code>, <code>delete</code> and <code>save</code> but there is no generic method available like <code>saveOrUpdate(Entity entity)</code> that in turn calls <code>Hibernate</code> or <code>HibernateTemplate</code> sessions <code>saveorUpdate()</code> methods.</p>
  
  <p>The way <code>CRUDRepository</code> provides this functionality is to 
  use like this</p>
  
  <pre><code>@Modifying
  @Query("UPDATE Space c SET c.owner = :name WHERE c.id = :id")
  Integer setNameForId(@Param("name") String name, @Param("id")
  </code></pre>
  
  <p>but this is not generic and needs to be written for complete form fields.
  Please let me know if there is any way or i can get session of Hibernate or object of Spring HibernateTemplate to solve this issue.   </p>