Now if i type Query q = session.getNamedQuery("assignmentbyletter_all"); result= q.list();
Return all values and assign to a list,it's not doing that because collectorId in AssignmentByLetter is a object of Collector.. Can anybody solve this issue? i need a plain list where i should have collectorName instead of CollectorId while fetching from the table..
Hello Amith, what you're trying to do it's to return all the collectorName that are associated with the AssignmentByLetter?
Joined: Oct 27, 2006
HI Angel, Thanks for the reply.. I have to diplay Collector names in JSF page using collectorsID from the Table. If i query the table the collector id will come as a object not as a value.. so please suggest me how to convert that object value returned in to noraml values and add to arraylist..
the above will return all of the com.bvn.finance.services.treatment.collectors.Collector objects as a list. if you want to return all the collectorName that are associated with AssignmentByLetter then you could use this query