title: How to expose mysql table schema as JPA object using Odata4j without maven
body: <p>I have to generate JPA objects for mysql tables using odata4J , as i am new to web services i have followed some online resources created following tasks;</p>
  
  <ol>
  <li>Created new database connection under "Database Development"</li>
  <li>Added eclipse link and mysql connector libraries through windows-> preferences->user library</li>
  <li>Changed project Facets to JPA and configured further JPA configurations</li>
  <li>Persistence.xml is generated and Populated Transaction Type from "Resource Local" under connection tab in the Persistence.xml</li>
  <li>Generated JPA Entities from table by Right clicking on Project and selecting JPA Tools -> Generate entities from Table option.</li>
  <li>One Java file is generated with the name of Table name.</li>
  <li>I have written one Java class called TestProducer </li>
  </ol>
  
  <p>public class TestProducer implements ODataProducerFactory {</p>
  
  <pre><code>String persistence = "testJPA";
  String namespace = "testui5";
  int maxResults = 50;
  
  @Override 
  public ODataProducer create(Properties properties) {
  
      String endpointUri = "http://localhost:8080/TestProducer.svc/";
      EntityManagerFactory emf = Persistence.createEntityManagerFactory(persistence);
      JPAProducer producer = new JPAProducer(emf, namespace, maxResults);
  
      DefaultODataProducerProvider.setInstance(producer);
      return producer;
  }
  </code></pre>
  
  <p>}</p>
  
  <ol>
  <li>Am able to get result on console by calling create method in TestProducer from Main </li>
  <li>But can any one tell me step by step procedure to access JPA Object through http , am not getting any online resouces.Please help me ..thanks in advance.</li>
  </ol>