Giter Club home page Giter Club logo

java_persistence_practice_parking_lot_comprehensive-2019-8-26-2-21-50-376's Introduction

Requirement

  • Please forked this repo for practice
  • Read Stories and finish follow requirements
  • Design your API list and put it to root folder - API.text, including the JSON data format, HTTP METHOD, URI as well as status code. You can try https://editor.swagger.io for API design
  • Design your E-R diagram and put it to root folder E-R.jpg
  • Complement the stories by following 3 layers architecture (controller-service-repository)
  • Write API testing via MockMVC
  • Write Repository via mybatis testing starter (There is an example for repository, feel free to replace them with your testing)
  • Write other unit testing if needed
  • Your commit message MUST follow the semantic message rule

Stores

Story 1

As a manager, I want to create and list all parking boys. So that I can find someone to park cars for the customer.

AC1. I should be able to create parking boy to the system. The parking boy contains the following information: employeeID: The employee id is a non-empty String representing the unique ID for a parking boy.

AC2. I should be able to list ALL the parking boys in the system. Each parking boy should include his employeeID.

Story 2

As a manager, I want to create and list all parking lots so that that parking boys can park cars into them.

AC1. I should be able to create a parking lot in the system. The parking lot contains the following information: parkingLotID: The parking lot id is a non-empty String representing the unique ID for a parking lot. capacity: The capacity of the parking lot. It is an integer from 1 - 100.

AC2. I should be able to list ALL parking lots in the system. Each parking lot should contain its parkingLotID, availablePositionCount and capacity of each parking lot.

Story 3

As a manager, I would like to associate parking lots to parking boys so that the parking boy can park cars in parking lots.

AC1. I should be able to associate one or more parking lots to a parking boy. Note that each parking lot can only be associated with one parking boy.

AC2. I should be able to display the parking boy and his/her managed parking lots. The parking boy should contain his/her employeeID and the associated parking lots should include their parkingLotID.

Practice Output & Submit

  • submit your git repo url to field answer

Hint

  • create Entity to present your data structure
  • create Repository for MyBatis integration
  • create Mapper under resources package
  • write sql statements
  • use Repository for your business to access to database

How to write semantic commit message

feat: add hat wobble
^--^  ^------------^
|     |
|     +-> Summary in present tense.
|
+-------> Type: chore, docs, feat, fix, refactor, style, or test.

How to use H2

  • schema.sql will be loaded and init database when application is starting
  • navigate to web consolehttp://localhost:8080/h2-console
  • put jdbc:h2:mem:tws_persistence_db in JDBC URL field

java_persistence_practice_parking_lot_comprehensive-2019-8-26-2-21-50-376's People

Contributors

dayangyang94 avatar linwenjun avatar

Watchers

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