Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Castor: Mapping Element not included in Java Class

 
Santiago Aucejo
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,
I want to do a mapping via a mapping file.
I have to work with "location" to build elements in the xml which are not attributes in the java class.

Somehing like that in Java class:


Should be mapped to:


with the attribute location="First" the element is generated, but how can i achieve to build another "parent"-element like "Subject" ?
I�m thankful for any help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic