title: How to pretty print Hibernate query results?
body: <p>When Hibernate returns a list of existing entities it's easy. But when using projections, the type of the list is not printable.</p>
  
  <pre><code>    List list = session
              .createCriteria(Product.class)
              .setProjection(Projections.projectionList()
                  .add(Projections.property("name"))
                  .add(Projections.property("price"))
              )
              .list();
      System.out.println(list);
  </code></pre>
  
  <p>Result:</p>
  
  <pre><code>[[Ljava.lang.Object;@12365c88, [Ljava.lang.Object;@6105f8a3, [Ljava.lang.Object;@2237bada, [Ljava.lang.Object;@77e2a6e2, [Ljava.lang.Object;@5710768a, [Ljava.lang.Object;@199e4c2b, [Ljava.lang.Object;@6e0d4a8, [Ljava.lang.Object;@64d7b720, [Ljava.lang.Object;@30272916, [Ljava.lang.Object;@5bb3d42d]
  </code></pre>
  
  <p>Is there any API for printing Hibernate's results?</p>