Odata4j eclipse design sample

I have jar downlaoded oData4J files from odata.org and I intend to make a manufacturer example as part of a basic web service.

I assumed that InMemoryProducerExample.java from http://code.google.com/p/odata4j/ will do the job and most likely it is.

My problem is that I don’t know what type of project to create (Eclipse Java), how to deploy and test this example.

Does anyone have such an initial peaceful world tutorial for odata step by step or an eclipse project that uses InMemoryProducerExample.java from oData. I really need a starting point, and I see one online.

Thanks.

+6
source share
1 answer

The easiest way to run the odata4j example is to simply test your project and open it in eclipse.

If you do not have mercury, install it from here .

check out the latest odata4j code using this mercurial command,

hg clone https://code.google.com/p/odata4j/ 

Open the project in eclipse using the maven eclipse plugin. If you are using the latest version of eclipse, it will be installed already, you cannot install it from here .

In eclipse go to import-> maven-> Existing maven projects

Then select the directory where mercurial checked odata4j.

When eclipse finishes importing projects, you can find InMemoryProducerExample and right-click on it to start it as a java program. You can run any of the other examples in the same way.

+2
source

Source: https://habr.com/ru/post/926296/


All Articles