How to use EMF to read XML file?
- by zengr
I have to use EMF in one of my class projects. I am trying to understand how to use EMF to do the following:
Read XML,
Get the values into objects.
Use ORM to persist the values in objects to database. - Done
Get data from database using ORM and generate XML.
I need to do all of that using: EMF (no idea what so ever) and JPA (DONE).
I have used JAXB and I know, this can be done using JAXB, but how is (EMF == JAXB)?!
I have created many java classes using EMF, but there are so many of them! Where do I implement the read/write methods and how do I run the EMF project?
Thanks