title: JDL: Multiple Menu
body: <p>I trying to create multiple menu category using JDL. In one CategoryItem have parentID.</p>
  
  <p>I already created JDL like:</p>
  
  <pre><code>microservice * with Category
  
  entity CategoryItem{
      name String required
  }
  
  relationship ManyToOne{
      CategoryItem{parrent} to CategoryItem
  } 
  
  service * with serviceClass
  paginate CategoryItem with pagination
  
  </code></pre>
  
  <p>If the client calls a method findAll. Can I return JSON format like that:</p>
  
  <pre><code>[
    {
      "id": 1,
      "name": "car",
      "CategoryItem": [
        {
          "id": 2,
          "name": "red car"
        },
        {
          "id": 3,
          "name": "blue car"
        }
      ]
    },
    {
      "id": 4,
      "name": "bike",
      "CategoryItem": []
    }
  ]
  </code></pre>