title: Store DateTime column in h2 database by hibernate
body: <p>I want to store DateTime column in h2 database by hibernate ,spring mvc and angularJs I can save the following date format 2015-01-14  but I want to store this format 2015-01-14 21:32:29 but I get this error 
  POST <a href="http://loclhost:8080/pagingpoc/app/rest/contacts" rel="nofollow">http://loclhost:8080/pagingpoc/app/rest/contacts</a> [HTTP/1.1 400 Bad Request 24ms]</p>
  
  <p>field declaration in entity</p>
  
  <pre><code>@Column(name = "updatetimestamp", nullable = false)
  @Type(type = "org.jadira.usertype.dateandtime.joda.PersistentDateTime")
  private DateTime  updatetimestamp;
  </code></pre>
  
  <p>Column name and type in database table</p>
  
  <pre><code>        &lt;column name="UpdateTimestamp" type="timestamp"/&gt;
  </code></pre>
  
  <p>Spring controller</p>
  
  <pre><code>@RequestMapping(value = "/rest/contacts",
          method = RequestMethod.POST,
          produces = MediaType.APPLICATION_JSON_VALUE)
  @Timed
  public void create(@RequestBody Contact contact) {
      contactRepository.save(contact);
  }
  </code></pre>
  
  <p>AngularJS  service</p>
  
  <pre><code>pagingpocApp.factory('Contact', function ($resource) {
      return $resource('app/rest/contacts/:id', {}, {
          'query': { method: 'GET', isArray: true},
          'get': { method: 'GET'}
      });
  });
  </code></pre>
  
  <p>AngularJS controller</p>
  
  <pre><code>  $scope.create = function () {
              Contact.save($scope.contact,
                  function () {
                      $scope.contacts = Contact.query();
                      $('#saveContactModal').modal('hide');
                      $scope.clear();
                  });
          };
  </code></pre>
  
  <p>Html page </p>
  
  <pre><code> &lt;div class="form-group"&gt;
              &lt;label&gt;Update Timestamp&lt;/label&gt;
              &lt;input type="text" class="form-control"
              ng-model="contact.updatetimestamp"&gt;
    &lt;/div&gt;
  </code></pre>