Hi,
I am having the student class which having FName,LName,num. Now I need to get FName,LName,num,Total(sum of num).
If i do like below I got the objects in the list
Code:
var Query = "select std from student std"
IList< student> list = HibernateTemplate.Find< student>(Query);
But i need to get the total also, so I have added total in the class. then If i do like
Code:
var Query = "select std.FName, std.LName,std.num,sum(std.num) from student std"
IList< student> list = HibernateTemplate.Find< student>(Query);
Its shows an exception.
How to add the assign the additional properties into student class which should not map with the database column.
Thanks&Regards
Nizam deen