I need to Print actual value from below list of objects. Is this possible to get actual values from this list ?
try {
Session session = factory.getCurrentSession();
session.beginTransaction();
Query query = session.createQuery("select uName1,pass1 from UserRegModel");
List<Object> userList = new ArrayList<Object>();
userList = query.getResultList();
System.out.println("selecting usernaem and pass done");
for (Object temp : userList) {
System.out.println(temp);
}
session.getTransaction().commit();
return userList;
} catch (Exception e) {
System.out.println(e);
}
I get below output. not the actual password and username
Ljava.lang.Object;@2c36b22d