Giter Site home page Giter Site logo

carpooling's Introduction

Introduction

This Carpooling application was developed to, as its name implies, provide carpool service for teacher in TJU between old and new campus.

Actually it's a course exercise, but we are trying to make it more professional.

Overview

Included with this application is an example of the optional DB API module. The examples provided illustrate a few of the features available in Hibernate, along with demonstrating how these are used from within Dropwizard.

This database example is comprised of the following classes:

  • The PersonDAO illustrates using the Data Access Object pattern with assisting of Hibernate.

  • The Person illustrates mapping of Java classes to database tables with assisting of JPA annotations.

  • All the JPQL statements for use in the PersonDAO are located in the Person class.

  • migrations.xml illustrates the usage of dropwizard-migrations which can create your database prior to running your application for the first time.

  • The PersonResource and PeopleResource are the REST resource which use the PersonDAO to retrieve data from the database, note the injection of the PersonDAO in their constructors.

As with all the modules the db example is wired up in the initialize function of the HelloWorldApplication.

Running The Application

To test this application run the following commands.

  • To package the example run.

      mvn package
    
  • To run the server run.

      java -jar target/carpooling-1.0.jar server carpooling.yml
    
  • To hit the Hello World example (hit refresh a few times).

    http://localhost:12306

carpooling's People

Contributors

jingsh93810 avatar rickierao avatar fanshiliang avatar likuangge avatar

Stargazers

 avatar  avatar  avatar

Watchers

James Cloos avatar Lane avatar  avatar  avatar  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.