简体   繁体   中英

Good online resources for JPA 2 orm.xml

I've been trying to find some good online resources for learning how to write a mapping/orm.xml for JPA 2.

I'm finding it just impossible. All examples are either for an earlier version, or they simply aren't there. It seems like using annotations is so popular that no one is writing examples for doing the mapping in XML.

Personally, I'd prefer to do the mapping in XML simply because I feel like otherwise I'm adding an unnecessary coupling between JPA and classes that are just simple data holding classes.

Anyway - can anyone recommend any decent online resources for JPA orm.xml?

I know this is an off-topic question.

I usually consider the following link as a bible for all the annotations that I need. It has all the annotations that are in JPA 1.0 and 2.0 and small description of each annotation. Also, You may need to research in the internet if the description is not enough for you.

http://www.objectdb.com/api/java/jpa

Also there is a good PDF document available in the oracle site here . It also has very good information on JPA 2.1.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM