Suppose I have the classes City, Date, Temperature
I have a huge table containing the temperature for number of cities and dates.
Sometimes, when working on a particular city, I am interested on having the prefetching strategy loading a bunch of dates for the given city.
Sometimes, when working on a perticular day, I am interested on having the prefetching strategy loading a bunch of cities for the given date.
I want to be able to change this at runtime.
Is that possible with Hibernate 2 or 3 ?
If yes, how ?
Thanks!
|