Basic project using Hibernate + Maven + MySQL
This project covers basic hibernate concepts:
- CRUD operations
- Embedding value types
- Saving collections
- Lazy fetching
- Primary key auto generation strategy
- One-to-One mapping
- One-to-Many mapping
- Many-to-One mapping
- Many-to-Many mapping
- Cascade types
- Single Table strategy
- Table per Class startegy
- Joined strategy
- MySQL
- Named queries and named native queries
- Query by Example
Note: This project needs to be refactored to use best practices which will be done later. As of now this code should be used only for understanding purposes.
Note: Run individual test cases instead of running all the test cases together to understand better. Comment non related annotations and uncomment required annotations by refering the test case and entity class so that you will not get confused.