Register / Login
Object Relational Mapping
Conditional eager fetch
posted 1 year ago
I am looking for a way to fetch data with eager fetch but not all just conditional, lets say I have 3 table department, employee and address table with below relationship
one department has many employee
one employee has many address with date stayed range.
now I want fetching department, only issue I am getting its fetching all the address of employee but I want for last one year.
any way to do this.
question about Enity mapping
one to many concepts
Design question regarding managing one-to-many relationship...
JPA persist one-to-many relationship by non-owning side