-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Create a system that will register borrowed machines to customers. This system should allow the user to enter records of borrowed machines, as well as information about the latest revision of the machine and information about the customers who borrowed the machine. Each loan must include the date of the loan, the machine that was borrowed, its loan period, and the customer who borrowed the particular machine. In addition to basic information about the Customers entity, it will include an enum informing whether it is a legal entity or a natural person, and the Revision and Loan entities must have a date.
- Peter Baltazarovič
- Norbert Dopjera
- Lukáš Krekáň
- Márius Molčány
This project is developed with following tools:
Java 11 - as project language.
Maven - for project management and build automation.
Spring Boot - as application framework.
To build and test the project you can use Maven from command line with command mvn clean install. When project build is finished you can find mr-launcher.jar file under build (or target) folder, containing all needed dependencies thanks to used Spring Boot Maven plugin.
IntelliJ IDEA is able to import Maven projects and supports Spring Boot. Inside run/debug configurations add new Spring Boot configuration and specify cz.muni.fi.pa165.dmbk.machinerental.ApplicationLauncher as the Main class. Project can be then build, tested and run from this IDE.
We also use Lombok library for code reduction and better maintenance. For example @Data annotation over class will generate getters, setters, toString, equals, hashCode and constructors methods.
Running application also provides web interface for in-memory database. You can access it at http://localhost:8080/h2-console. This is only used for development to check that database mappings are creating correctly and will be removed for production.

