This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes XML and Related Technologies and the fly likes Castor: Mapping Element not included in Java Class Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "Castor: Mapping Element not included in Java Class" Watch "Castor: Mapping Element not included in Java Class" New topic
Author

Castor: Mapping Element not included in Java Class

Santiago Aucejo
Greenhorn

Joined: May 10, 2006
Posts: 6
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.
 
Consider Paul's rocket mass heater.
 
subject: Castor: Mapping Element not included in Java Class
 
Similar Threads
Hibernate : Hibernate :Mapping Multiple Table for single POJO class
switch from set to list, many-to-many
Hibernate2, composite-id, mappingException
Hibernate: independent key value pair mapping
Using Directory Path as Parameters?