title: RESTful using Jersey: method to POST multiple entities
body: <p>I am trying to develop a method in my RESTful web service in Java to insert multiple entries into a MySQL DB using POST request. The generated RESTful Web Service has a method to insert a single entity, but not multiple ones. For example, it accepts:</p>
  
  <pre><code>&lt;creature&gt;
    &lt;sort&gt;Mouse&lt;/sort&gt; 
    &lt;name&gt;Pinky&lt;/name&gt;
  &lt;/creature&gt;
  </code></pre>
  
  <p>But not (what I would like):</p>
  
  <pre><code>&lt;creature&gt;
    &lt;sort&gt;Mouse&lt;/sort&gt; 
    &lt;name&gt;Pinky&lt;/name&gt;
  &lt;/creature&gt;
  &lt;creature&gt;
    &lt;sort&gt;Elephant&lt;/sort&gt; 
    &lt;name&gt;Dumbo&lt;/name&gt;
  &lt;/creature&gt;
  </code></pre>
  
  <p>I'm guessing that you have to loop through the entities, but not sure how to implement it, being a shameful novice.</p>