Persisting 3rd party objects with JPA

后端 未结 3 947
别跟我提以往
别跟我提以往 2020-12-16 06:08

In my current project I am using a 3rd party library which has no JPA annotations.

How can I persist objects from that library using JPA and external mappings?

3条回答
  •  春和景丽
    2020-12-16 06:33

    Refer to the docs of your JPA implementation; any serious JPA implementation should provide examples of use of XML as well as annotations. See http://www.datanucleus.org/products/accessplatform_2_0/jpa/metadata_xml.html for DataNucleus docs for XML structure, and then refer to the particular relation types for examples of different features.

提交回复
热议问题