Giter Club home page Giter Club logo

odata-jpa-example's Introduction

Pre-requisites
1. Apache Maven 3.0
2. Apache Tomcat 7.0.11 or greater
3. Java 6
4. MySQL 5.1
5. mySQL JDBC driver under ${TOMCAT_HOME}/lib

Important points
1. In case you are using local mySQL5, ensure that you create a new database "odataexample" on the mySQL5 database. The command is
	create database odataexample;
	use odataexample;
2. To create the tables and load the data in mySQL, execute the "configuration/parts_tables.ddl" file SQL statement in the "odataexample" schema on the mySQL5 database.
3. The command to build the war is "mvn clean install". Please copy the war manually to the tomcat webapps folder.
5. You can access the running application at (assuming tomcat running at port 8080)
	1. http://localhost:8080/odata_example/odatajpa.svc/
6. The client examples can be run as JUnit tests    

URL WHICH SHOWS HOW TO ENABLE SEEING THE NATIVE ATOM FEED XML IN BROWSERS

http://publib.boulder.ibm.com/infocenter/wxsinfo/v7r1/index.jsp?topic=%2Fcom.ibm.websphere.extremescale.over.doc%2Ftxsrestbrows.html

SAMPLE ODATA4J URLs TO TEST ONCE THE APPLICATION IS DEPLOYED SUCCESSFULLY ON JBOSS 7.1.1

IE

	1. http://localhost:8080/odata_example/odatajpa.svc/
	2. http://localhost:8080/odata_example/odatajpa.svc/$metadata
	3. http://localhost:8080/odata_example/odatajpa.svc/ShipVia
	4. http://localhost:8080/odata_example/odatajpa.svc/Supplier('S101')
	5. http://localhost:8080/odata_example/odatajpa.svc/SupplierParts(2)/part
	6. http://localhost:8080/odata_example/odatajpa.svc/Supplier?$orderby=supplierName desc
	7. http://localhost:8080/odata_example/odatajpa.svc/Supplier?$orderby=supplierName desc&$top=4
	8. http://localhost:8080/odata_example/odatajpa.svc/SupplierParts?$orderby=quantity desc&$top=4
	9. http://localhost:8080/odata_example/odatajpa.svc/SupplierParts?$orderby=quantity desc&$top=4&$expand=part
	10. http://localhost:8080/odata_example/odatajpa.svc/Supplier?$filter=startswith(supplierName,'Sea') =>Doesn't work

FireFox

	1. http://localhost:8080/odata_example/odatajpa.svc/SupplierParts?$orderby=quantity desc&$top=4&$expand=part&$format=json

odata-jpa-example's People

Contributors

anilallewar avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.