This may not be the complete answer, but http://www.jpox.org/docs/1_2/tutorials/jpa_tutorial.html uses JPA 1.0. However, this was useful when I created my ORM.xml for JPA 2.0. I know that βEnterprise JavaBeans 3.0β by O'Reilly also has good examples. Otherwise, you should look at the diagram (post a link, but apparently I do not have enough reputation to publish several links) and compare it with examples of annotations ... at least this is what I had to do.
ORM.xml does not seem to be suitable for the annotation version, which explains the difficulty of finding good examples of the ORM.xml file.
Randy
source share