First of all I am hibernate's greenhorn. I am solving a problem with displaying last PriceEntry from one to many association in hibernate. So I don't know if hibernate support this feature but I think it should.
I have e.g. House and PriceEntry (one-to-many) . Each house has thousands PriceEntries and I need use only last PriceEntry to be display somewhere. I have seen some solution with a hibernate's Filter but I think it filters data after their complete loading. So i cannot be good solution.
From performace reasons I prefer the way the each Hause load only last PriceEntry.
I have implemented this by adding one-to-one association to the last one PriceEntry to each Hause. But I think there can be some nicer solution via Hibernate without adding next columns into a database.
Could you advice me how it can be done.