Hello. This is my hibernate code for getting details from database as per enrollment number
The sql query contains table name as 'tuitionpayment' which is matched to TuitionPaymentEntity in the hbm.xml
(I have used TuitionPaymentEntity to the list in the code). The returned list contains fullname(i.e
string),payment(int),due(int) which is also the property of TuitionPaymentEntity class. How can i get those data?
This is what i tried :
But this code gives this exception
Exception in
thread "AWT-EventQueue-0" java.lang.ClassCastException: java.util.ArrayList cannot be cast to org.nit.Entity.TuitionPaymentEntity (In the line number 264)
How can i get those data?