When executing a Criteria Query in hibernate, I get the following exception:
javax.persistence.PersistenceException: javax.persistence.PersistenceException: org.
I have my entity class UploadFiles having two fields as fid & fname where fid being primary key. I have my query in dao as
StringBuilder queryString = new StringBuilder("from UploadFiles f where f.fid=1");
Query query = (Query) session.createQuery(queryString.toString());
return query.list();
when it execute query.list()
,it gives serialization exception