title: Displaying contents of an object in the query result
body: <p>I have the following code in java:</p>
  
  <pre><code>    try {
          SessionFactory sessionFactory=new Configuration().configure().buildSessionFactory();
          session=sessionFactory.openSession();
          Query userQuery=session.createQuery("select u.userId, u.username,p.profileContent from User as u inner join u.profiles as p");//, p.profileContent 
  
          List userList=userQuery.list();
          for(int i=0;i&lt;userList.size();i++){
              System.out.println(userList.get(i));
          }
      }
      catch(Exception e){
          System.out.println(e.getMessage());
      }
      finally{
          session.flush();
          session.close();
      }
  </code></pre>
  
  <p>I am trying to display the result of the query but only the object is displayed. Can you suggest me the way to display the contents of the objects. Currently i am getting result like:</p>
  
  <blockquote>
    <p>[Ljava.lang.Object;@64bef361</p>
  </blockquote>