So to portably obtain metadata mapping information you would have to follow all the metadata generation rules for annotations and ORM files, including nested references?
[Message sent by forum member 'jotobjects' (jotobjects)]
http://forums.java.net/jive/thread.jspa?messageID=208504