Skip to content

Latest commit

 

History

History

KP_Hibernate02

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 

KP_Hibernate02 README

This is a JavaServer Faces web application example.


Use Cases

  • Company: welcome page
  • Show departments: table view of the company's departments and links to its employees
  • Edit the existing department: edit and update the information about a department
  • Add a new department: add a new department to the company
  • Delete the department: delete the existing department (with its employees) from the company
  • Show employees: table view of selected department employees
  • Edit the existing employee: update and edit the information about an employee
  • Add a new employee: add a new employee to the department
  • Delete the employee: delete an employee from the department


Java API Documentation

Application Design & Implementation

Build Process

The application uses the build automation tool Apache Maven 3.
The application was tested with web servers Tomcat 9 and Jetty 9.
The application URL: http://localhost:8080/kp_hibernate02/.

Testing

The application runs test cases for JUnit 4.

Database Technology

The application uses MySQL 5.7 relational database for data storage.

Logging

The application uses standard java loggers.

Business / Persistence Layer

The Persistence Layer is based on Hibernate 5 and MySQL database.
It uses Hibernate Annotations and Hibernate EntityManager.
Hibernate EntityManager implements the programming interfaces and lifecycle rules as defined by the JPA 2.1 specification.
The database connection pool is configured with library C3P0.

Presentation Layer

The application uses JavaServer Faces 2.2 web application framework and Facelets (JSF View Definition Framework).

  • Location-based breadcrumb website navigation
  • Templates with Facelets templating framework
  • Composition components with Facelets tag library


Database Model Diagram



Application Screens


Welcome page of the application. Overview of the company.


Listing all departments.


Editing the existing department.


Adding a new department.


Listing all employees of the selected department.


Editing the existing employee.


Adding a new employee.

Back to the top of the page