EMF = Eclipse Modeling Framework
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
UPDATE1 HINT http://www.eclipsezone.com/eclipse/forums/t58829.html
UPDATE2
I have schema and I have generated the model code using the .xsd. Now I am having problem in reading the data from the XML file.
See Question&Answers more detail:os