Relationships with hibernate
This repository created for hibernate examples post on medium : https://medium.com/@mstrYoda/hibernate-deep-dive-relations-lazy-loading-n-1-problem-common-mistakes-aff1fa390446
It contains example usages of OneToMany, ManyToOne, BatchSize annotations and Join Fetch in jpql.
Running examples for first you need to drop all tables from database. Then insert sample datas for first time, and run main again.