dimanche 28 juin 2015

JAXB map to object insteadof string

I have the following XML:

<game name="m1itskow" sourcefile="maygay1bsw.c" ismechanical="yes" cloneof="m1itsko" romof="m1itsko">
    <description>It's A Knockout (Maygay) (M1A/B) (set 24)</description>
    <year>199?</year>
    <manufacturer>Maygay</manufacturer>
</game>

Today I have manufacturer as a String inside Game class, but I need to map to a Manufacturer class, how should I do it? Is it possible? thanks.

Aucun commentaire:

Enregistrer un commentaire