This is simple junit and mockito project created for educational and demo purposes
#Who can use it? These examples are useful both for beginners with no previous experience in Hibernate, Junit and Mockito and for individuals who already have good knowlgde of Hibernate. However, Java programing basic knowldge needed. Instructors may use these examples for teaching purposes.
The project is divided into the following branches:
- JDBC
- Hibernate and JUnit ... more branches coming soon (Mockito and Junit)
#Installation
For a successful installation of the project, it recommended cloning the project using the clone button. Next use "git clone " in your terminal to clone project in desired directory
a.Before download be sure you have Java8/11 JDK installed. It is recommended to use IntelliJ IDE to run this project
JDBC branch
- JDBC branch demostrates basics of usage of Java JDBC API, especially PreparedStatment class, Statement class and others.
Hibernate and JUnit
- Use jakarta implementation of Hibernate
- Demostartes how to use singleton to manage hibernate session.
- Demostartes how to One-To-Many relationship example.
- Demostartes how to One-To-One relationship example.
- Provide basic JUnit testing examples