Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
University project demonstrating usage of Spring Framework, Hibernate and other related technologies.
CSS Java JavaScript
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
bm-api-impl
bm-api
bm-rest-client
bm-rest
bm-web
.gitignore
README-requirements.md
README.md
pom.xml

README.md

Booking Manager

This is a team project for our advanced Java Course at Masaryk University.

Technology and setup requirements

  • Server - Apache Tomcat
  • Framework - Spring
  • Database - JavaDB, port 1527
  • Database name - pa165
  • Database user - pa165
  • Database user password - pa165
  • Web application context - http://localhost:8080/pa165

Modules

  • bm-api - contains DTO and Service interfaces
  • bm-api-impl - contains implementations of Convertors, interfaces and implementations of DAOs, implementations of DTOs, implementations of Entities and Services
  • bm-rest - implementation of REST
  • bm-rest-client application to access data from bm-rest, which is deployed together with bm-web, via REST
  • bm-web web presentation layer, uses Spring MVC

Building and Testing

Project uses maven, to build it use:

mvn install

Run bm-rest-client module:

mvn exec:java -Dmaven.test.skip=true

Run bm-web module:

mvn tomcat:run -Dmaven.test.skip=true

Set up database

  • Start Derby Network Server, instructions can be found here:
https://github.com/jakubpolak/BookingManager/wiki/Manual:-Using-of-Apache-Derby
  • Change hibernate configuration in /bm-api-impl/src/main/resources/configuration/hibernate.xml to:
<prop key="hibernate.hbm2ddl.auto">create-drop</prop>
  • Run application, database tables are created.

  • Change hibernate configuration in /bm-api-impl/src/main/resources/configuration/hibernate.xml to original state.

  • Run SQL script with sample data, the script can be found here:

/bm-api-impl/src/main/resources/data.testing/db-sample-data.sql

Passwords in database are saved in form of SHA-1 hash, default passwords are:

Something went wrong with that request. Please try again.