When I run above example. I am getting following: ---------------- log4j:WARN No appenders could be found for logger (org.hibernate.cfg.Environment). log4j:WARN Please initialize the log4j system properly. ******************************* Query using Hibernate Query Language Hibernate: select insurance0_.ID as col_0_0_ from insurance insurance0_ where (insurance0_.ID='1') could not execute query using iterate ------------------------------------
This is the same case for all the select queries. It always complain "Could not execute query using iterate". Can you please suggest me a solution?