title: Creating json-object with auto increment for POST reqest to save in DB
body: <p>I used springboot to create webservice and connect with my angular project 
  so, I used save() in CrudRepository to insert and update  but when I send POST request with JSON in POSTMAN to insert new object I get an error:  </p>
  
  <pre><code>"status": 500,
  "error": "Internal Server Error",
  "message": "could not extract ResultSet; SQL [n/a]; nested exception is org.hibernate.exception.SQLGrammarException: could not extract ResultSet",
  "path": "/update" 
  </code></pre>
  
  <p>updating the existing id in database is fine but for new id it fail. </p>
  
  <p>JSON example</p>
  
  <blockquote>
    <p>{
       "id": 5,                  &lt;------auto_increment<br>
       "name": "John",
       "description": "handsome"
    }</p>
  </blockquote>
  
  <pre><code>@RestController{
  @Autowired
      Connect connect;
  @PostMapping("/update")
      public Topic updateTopic(@RequestBody Topic topic){
          connect.save(topic);
           return topic;
      }
  }
  </code></pre>
  
  <blockquote>
    <p>></p>
  </blockquote>
  
  <pre><code>@Entity
  @Table(name = "info")
  public class Topic implements Serializable {
      private static final long serialVersionUID = -3009157732242241606L;
      @Id
      @GeneratedValue(strategy = GenerationType.AUTO)
      private Long id;
  
      @Column(name = "name")
      @JsonView(View.Summary.class)
      private String name;
  
      @Column(name = "description")
      @JsonView(View.Summary.class)
      private String description;
  
      public  Topic (){
  
      }
  
  
      public Topic(String name,String description){
          this.name = name;
          this.description = description;
      }
  
      public Topic(Long id,String name,String description){
          this.id = id;
          this.name = name;
          this.description = description;
      }
  
      public String getName() {
          return name;
      }
  
      public Long getId() {
          return id;
      }
  
      public String getDescription() {
          return description;
      }
  
      public void setDescription(String description) {
          this.description = description;
      }
  
      public void setId(Long id) {
          this.id = id;
      }
  
      public void setName(String name) {
          this.name = name;
      }
  }
  </code></pre>
  
  <p>How do I write json to match Autoincrement and insert new id?</p>