Java – how to export eclipse link objects to XML

Is there an easy way to store my model that I use eclipse link in eclipse files?

I want to implement the export function in my program. I want to know if it can be done using eclipse link or any other framework

thank you

Solution

According to the complexity of the data model, using JAXB should be a relatively simple way to group (export) objects to XML You must annotate an entity with @ xmlrootelement or @ xmltype and fields with @ xmlelement or @ xmlattribute

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>