title: Spring Data JPA not populating child table in one to many
body: <p>I have a JSON like this: </p>
  
  <pre><code>{
    "pcSignatureHash": "String",
    "pcSignature": "String",
    "infectedBy": "String",
    "agent": {
      "userCode": 0
    },
    "pc": {
      "name": "String",
      "userName": "String",
      "osType": "String",
      "domainName": "String",
      "cpuId": "String",
      "osVersion": "String",
      "macId": "String",
      "vm": true,
      "friendlyName": "String",
      "statuses": [
        {
          "firewall": true,
          "firewallTestDate": "String"
        }
      ]
    }
  }
  </code></pre>
  
  <p>It's not storing the statuses in the database.</p>
  
  <p>The <strong>infections</strong> has 1 to 1 relationship with <strong>pcs</strong> and pcs has 1 to Many relationship with the <strong>statuses</strong>.</p>
  
  <p>The models are properly set like 1 have <code>Infections</code> in <code>PCs</code> and have <code>Set&lt;Statuses&gt;</code> in the PCs and <code>Statuses</code> has <code>PCs</code> in its model.</p>
  
  <p>Is there any other way to store the data?
  If I store the statuses separately <strong>that doesn't make a sense</strong> it stores the PCs twice because we need to pass the PCs object as a foreign key.   </p>