title: Saving consumed data to database
body: <p>I am having a problem with saving data from consumed API to database, so this is my model:</p>
  <pre class="lang-java prettyprint-override"><code>@Entity
  public class Beer {
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private Integer id;
  
      private String name;
      private String description;
  }
  </code></pre>
  <p>Also in my Service I have:</p>
  <pre class="lang-java prettyprint-override"><code>ResponseEntity&lt;Beer&gt; response = restTemplate.getForEntity(
      &quot;https://api.punkapi.com/v2/beers&quot;,
      Beer.class
  );
  </code></pre>
  <p>Now I don't know how to use this to save data to database. Any ideas?</p>