title: Updated information is not reflecting in mysql databse
body: <p>I have setup a project by referring this blog but instead of using maven I have used gradle.
  <a href="https://hellokoding.com/registration-and-login-example-with-spring-security-spring-boot-spring-data-jpa-hsql-jsp/" rel="nofollow noreferrer">Registration and Login Example with Spring Security, Spring Data JPA, Spring Boot</a></p>
  
  <p>Everything works fine except updating value in Mysql database is not working.</p>
  
  <p>I have created a request mapper to update user information.I have checked that request body is not empty and has all the values. Also I am getting response status as "SUCCESS". But when i see in Mysql database nothing seems updated. My request mapper is as follows. </p>
  
  <pre><code>@RequestMapping(value = "/updateRegistration", method = RequestMethod.POST)
  public Map&lt;String, Object&gt; updateRegiatration(@RequestBody Map&lt;String, Object&gt; requestBody) {
      Map&lt;String, Object&gt; response = new HashMap&lt;&gt;();
      try {
          UUID userId = UUID.fromString((String) requestBody.get("userId"));
          if (userId != null) {
              User user = userRepository.findOne(userId);
              user.setFullName((String) requestBody.get("fullName"));
              user.setPostOrDesignation((String) requestBody.get("designation"));
              user.setCurrentComapny((String) requestBody.get("companyName"));
              user.setState((String) requestBody.get("state"));
              user.setCity((String) requestBody.get("city"));
              user.setShortInfo((String) requestBody.get("shortInfo"));
              user.setEmail((String) requestBody.get("email"));
              user.setAddress((String) requestBody.get("address"));
              userRepository.save(user);
              response.put("STATUS", "SUCCESS");
              response.put("STATUS_MESSAGE", "Successfully updated Information.");
          } else {
              response.put("STATUS", "ERROR");
              response.put("STATUS_MESSAGE", "Something went wrong while updating information.");
          }
      } catch (Exception e) {
          e.printStackTrace();
      }
      return response;
  }
  </code></pre>
  
  <p>As I am new to java and spring, I am unable to figure out what is happening here. 
  I have doubt that it is because of the 'hsqldb' used in the application. 
  here is build.gradle file.</p>
  
  <pre><code>    buildscript {
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath("org.springframework.boot:spring-boot-gradle-   plugin:1.5.2.RELEASE")
          classpath 'mysql:mysql-connector-java:5.1.37'
      }
      }
  
      apply plugin: 'java'
      apply plugin: 'eclipse'
      apply plugin: 'idea'
      apply plugin: 'org.springframework.boot'
  
      jar {
          baseName = 'gs-accessing-data-mysql'
          version =  '0.1.0'
      }
  
      repositories {
          mavenCentral()
      }
  
      sourceCompatibility = 1.8
      targetCompatibility = 1.8
  
      dependencies {
  
      compile("org.springframework.boot:spring-boot-starter-web")
  
      // JPA Data (We are going to use Repositories, Entities, Hibernate, etc...)
      compile 'org.springframework.boot:spring-boot-starter-data-jpa'
  
      // Use MySQL Connector-J
      compile 'mysql:mysql-connector-java'
  
      testCompile('org.springframework.boot:spring-boot-starter-test')
  
      compile 'org.springframework.boot:spring-boot-starter-security'
      runtime 'org.hsqldb:hsqldb:2.3.1'
      compile 'org.apache.logging.log4j:log4j-api:2.0-beta9'
      compile 'org.apache.logging.log4j:log4j-core:2.0-beta9'
      compile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.1.0'
      compile("org.apache.tomcat.embed:tomcat-embed-jasper")
  
      compile('javax.servlet.jsp.jstl:javax.servlet.jsp.jstl-api:1.2.1') {
          transitive = false
      }
      compile('org.glassfish.web:javax.servlet.jsp.jstl:1.2.1') {
          transitive = false
      }
  }
  </code></pre>
  
  <p>Also i have set application.properties file as follows</p>
  
  <pre><code>spring.datasource.url=jdbc:mysql://localhost/test
  spring.datasource.username=root
  spring.datasource.password=abc123
  spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  spring.mvc.view.prefix: /
  spring.jpa.show-sql=true
  spring.jpa.hibernate.ddl-auto=create
  </code></pre>