I have a couple entity beans whos .class compiled files will be reused in multiple business domain contexts. Therefore, it would not be appropriate to embedd the queries or one-to-many etc dependancies in the actual java source. I found some good docs on using external XML files to configure this however, the info on the DTD tells what the entity is without really describing it well. There are also no docs on how to load the xml for ejb3 bmp/cmp without introducing hibernate dependancies.
The goal is to be able to do this in ejb3 standalone and jboss4 and glassfish.
ref link:
http://docs.jboss.org/ejb3/app-server/H ... index.html
http://java.sun.com/javaee/5/docs/tutorial/doc/
http://jcp.org/aboutJava/communityproce ... index.html
best ref i could find.. and its not complete:
http://www.hibernate.org/hib_docs/annot ... iding.html