LoginForm l=(LoginForm)form;
BankController b=(BankController)form;
gives me a ClassCastException as my criteria returns me list of objects of type Product(Which is my POJO)
how can I cast it to my form class object (ProductForm) ?
how can I retrieve object of type Part from the list (or single record) returned by Criteria?