1 EntityManager em = factory.createEntityManager(); 2 em.getTransaction().begin(); 3 Query query = em.createNativeQuery("select user_id from user_info where name=? ",UserInfo.class) .setParameter(1, "ram");
4 List <Long> result =(List<Long>)query.getResultList(); error line:->4
getting below errors . Oct 20, 2012 3:30:29 PM org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions WARN: SQL Error: 0, SQLState: S0022 Oct 20, 2012 3:30:29 PM org.hibernate.engine.jdbc.spi.SqlExceptionHelper logExceptions ERROR: Column 'Address' not found.
|