hi,
i must indicate that i get the result for 'FISSATIR' like this :
Code:
List list = theSession.createQuery(hqlQuery).list();
As you see here i give a query to get data. I expect hibernate to select from the table and update itself after the selection to set the 'HESAPPLAN' field that is aggregated in 'FISSATIR'. (
Isn't it true?)
But hibernate does not work as i expect, because it was programmed to hold an instance of 'FISSATIR' or instance list of 'FISSATIR' in session and set the aggregated fields on it/them. So, if you have no object (i mean if 'FISSATIR' instance is null in session) it gives a "NullPointerException".
So, we must put it to session with 'session.load(...)' command. But here i have got a special case. The special case is this :
The 'FISKOD' field is related with a table named as 'U_FIS' and i try to get the 'FISSATIR' list through like a query : "
from FisSatir where fiskod = 3451"
I EXPECT from HIBERNATE to LOAD the 'FISSATIR' list WHERE the 'fiskod' equals '3451' for example. While doing this, it must set the aggregated 'HesapPlan' field. Is the special cases are not supported?
Ignoring Hibernate Team here : Please give an acceptable answer. Because these type of requirements increases and there is another post about the same subject in forum also.
Regards,[/u]