Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Conditional eager fetch  RSS feed

 
Prashant Saraf
Ranch Hand
Posts: 57
Eclipse IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

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.

Thanks
Prashant Saraf
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!