Java Odata Tutorial part 3

Hi ! Today we add producer class to our project. Lets start ! 🙂

  1. Create package „producer”. Right click on „java” folder, then select New -> Package.
  2. Inside package, create producer class named JavaJPAServiceFactory.
  3. Fill class by the code bellow.
  4. Create new package „resources” in main package.
  5. Inside package create persistence.xml file.
  6. Fill file by code bellow.
  7. Click on create JPA facet and add file to its configuration.

It’s all today. In next part we try to make annotations and run our project.

Sprawdź też

Java Odata tutorial part 2

Welcome in second part of Java Odata Olingo tutorial. Today we add maven support to …