Hibernate Que related to database i want select query generic without using property name

Posted by Sudhir Gudhe on Server Fault See other posts from Server Fault or by Sudhir Gudhe
Published on 2010-05-20T04:28:02Z Indexed on 2010/05/20 4:31 UTC
Read the original article Hit count: 165

Filed under:

Hi My que is i tried to get the data from data base using

String SQL_QUERY ="from dat_personal_info "; Query query = session.createQuery(SQL_QUERY); for( it=query.iterate();it.hasNext();) { Object[] rowObject =(Object[]) it.next(); }

but error occurs Hibernate: select dat_person0_.row_id as col_0_0_ from dat_personal_info dat_per son0_ java.lang.ClassCastException: bn.com.server.database.maptables.dat_personal_info $$EnhancerByCGLIB$$e1ffd36e cannot be cast to [Ljava.lang.Object;

pls any who ans pls reply Thanks & Regards Sudhir gudhe

© Server Fault or respective owner

Related posts about hibernate