Very cool tip. Thanks!

Anybody else got any more such tips on JAXB , feel encouraged to dump them
on this thread.

On Fri, Jun 20, 2008 at 1:57 PM, Dain Sundstrom <[EMAIL PROTECTED]> wrote:

> I also typically replace choice groups with a sequence of optional
> elements.  When JAXB generates java code for choice groups, it creates a
> List<Object> instead of fields for each choice, which just annoying to work
> with.  JAXB will parse the documents file with the change.
>
> -dain
>
>
> On Jun 20, 2008, at 7:29 AM, Karan Malhi wrote:
>
>
>>> There's really nothing in the docs about cheating at this level.
>>>
>>
>> :)
>>
>>  Best bet is to try and trim the schema down to only what you really want
>>> to generate.  You may have to hack on the resulting java code a bit to
>>> wire
>>> it into any existing objects we already have jaxb objects for.  If you're
>>> lucky there won't be too much overlap or any at all.
>>>
>>> Hmm... I didnt realize I might have to tweak the generated code. Good to
>>>
>> know this.
>>
>>
>> --
>> Karan Singh Malhi
>>
>
>


-- 
Karan Singh Malhi

Reply via email to