How to use EMF to read XML file?
Posted
by zengr
on Stack Overflow
See other posts from Stack Overflow
or by zengr
Published on 2010-03-30T09:09:23Z
Indexed on
2010/03/30
9:13 UTC
Read the original article
Hit count: 857
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
© Stack Overflow or respective owner