CC'ing Milan on the NBs team.
Note that your latter example is not a valid XML document (it required
an additional root element).
Jersey supports lists of JAXB beans, you can change the type T to
List<T>, but beyond that i am not familiar with the code that NBs
generates.
Paul.
On Aug 25, 2010, at 7:50 AM, Dmitri Krupnov wrote:
> Hello,
>
> Going off this article, 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