users@jersey.java.net

POST multiple entities

From: Dmitri Krupnov <dmitrikrupnov_at_gmail.com>
Date: Tue, 24 Aug 2010 22:50:31 -0700

Hello,

Going off this article <http://netbeans.org/kb/docs/websvc/rest-mysql.html>,
I am trying to develop a method to insert multiple entries into a MySQL DB
using POST request. The Netbeans generated java files have a method to
insert a single entity, but not multiple ones. For example, it accepts:

*Code:*<creature>
     <sort>Mouse</sort>
     <name>Pinky</name>
</creature>

But not (what I would like):

*Code:*<creature>
    <sort>Mouse</sort>
    <name>Pinky</name>
</creature>
<creature>
    <sort>Elephant</sort>
    <name>Dumbo</name>
</creature>

I'm guessing that you have to loop through the entities, but not sure how to
implement it, being a novice.

Thank you in advanced,
Dmitri