title: How to commit transaction in Spring with jdbc template ..?
body: <p>i am new to Spring ..i was trying to do some database transactions using jdbc template....the programs are running fine but when i am fetching some data from database after some <code>DML</code> operations ,it is not showing updated data....after manually committing in the database the refreshed data are showing....Is there any way to commit the database from program it self using jdbc template....!! I am using Spring 4.1.6 version...Please help...</p>
  
  <pre><code>public void create(Student s){
          String sql = "insert into student(id,name,age)values(?,?,?)";
          jdbcTemplate.update(sql,s.getId(),s.getName(),s.getAge());
          System.out.println("Row Inserted");
          //Logic for commit...???
          return;
      }
  </code></pre>