• Post Reply Bookmark Topic Watch Topic
  • New Topic

Need help while using mapping JAXB generated class to custom classes  RSS feed

 
Sim Kim
Ranch Hand
Posts: 268
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I have some old classes (which I cannot change) . While JAXB generates it own classes , I need to populate my old classes with the values of JAXB generated classes . Where do I do that ?

I have the mapping code ready :


I want to know where should I call this method in my code so that the values from JAXB classes get filled in my custom class and vice versa ?
Do I need to use marshaller for this ?
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!