Skip to content

Demo project using java/spring stack. Contains embedded H2 database, persistent, service layers and console dialogue engine

License

Notifications You must be signed in to change notification settings

antonmartynenko13/university

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

University

University is demo project. It uses java 11 and spring boot 2 and H2 embedded relative database. Tests are Junit 5 based.

The specification

Create a simple Spring Boot java project with the console interface for university, which consists of departments and lectors. The lectors could work in more than one department. A lector could have one degree (assistant, associate professor, professor).

All data is stored in the relational database.

The app should implement such commands:

1.User Input:

Who is head of department {department_name}

Answer:

Head of {department_name} department is {head_of_department_name}

2.User Input:

Show {department_name} statistics.

Answer:

assistans - {assistams_count}. 
associate professors - {associate_professors_count}
professors -{professors_count}

3.User Input:

Show the average salary for the department {department_name}.

Answer:

The average salary of {department_name} is {average_salary}

4.User Input:

Show count of employee for {department_name}.

Answer:

{employee_count}

5.User Input:

Global search by {template}.

Answer:

Ivan Petrenko, Petro Ivanov

Requirements

To build and run application you need Java version not older then 11 and Apache Maven 3.

Building

Run next script in root directory

mvn clean package spring-boot:repackage

Run

Builded .jar file could be run using

java -jar target/university-1.1.0.jar

You can also see javadoc

And other project details

License

MIT

About

Demo project using java/spring stack. Contains embedded H2 database, persistent, service layers and console dialogue engine

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages