Hi, I am a Hibernate newbie, got two questions hopefully not too silly for the hibernate experts here
I have two object,
Stock and
TickStock has a property
Code:
Set<Tick> Ticks
In the database, I have about 30million ticks for a particular Stock. Now if I use
Code:
Stock oStock = (Stock)session.load(Stock.class);
Q1.Is this loading gonna load all 30million ticks?
What i want to do with the ticks is that I want to update some ticks of a particular Stock out of a portfolio of 30 stocks with correct values, therefore I need to do something like
Code:
Update Ticks Set Tick = xxx Where ValueDateTime = yyyy
Q2.What's the best approach to this kind of operation using hibernate? Should I load all 30 million ticks along with the Stock object?
Thanks