This week's book giveaway is in the OCPJP forum.
We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Pre initializing a collection for automated JAXB generations. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA/OCP Java SE 7 Programmer I & II Study Guide this week in the OCPJP forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Pre initializing a collection for automated JAXB generations." Watch "Pre initializing a collection for automated JAXB generations." New topic
Author

Pre initializing a collection for automated JAXB generations.

nithin chinni
Ranch Hand

Joined: Dec 02, 2010
Posts: 41
Hi, I am using JAXB for generating objects form XSD's. The way jaxb objects are generating right now is,



But I want something like this


Is there a way in the jaxb bindings to specify that I want a pre initialization for jaxb elements.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Pre initializing a collection for automated JAXB generations.