title: List<Object []> in JSF dataTable
body: <p>I have two entities , Employee and publication : 
  I want to show in a data table the publication title, date, and it's author stored in database :
  this is my query using JPQL : </p>
  
  <pre><code>private static EntityManager em;
  private static EntityManagerFactory factory;
  
  public PublicationDAO() {
      if(factory==null)
          factory=Persistence.createEntityManagerFactory("mavenTest");
      if(em==null)
          em=factory.createEntityManager();
  }
  
  public List&lt;Object[]&gt; getAllPublication() {
       em.getTransaction().begin();
       List&lt;Object[]&gt; pubs = em.createQuery("SELECT c.titrePublication, p.login FROM Publication c  JOIN c.employee p ").getResultList();
       em.getTransaction().commit();
       return pubs;
  }
  </code></pre>
  
  <p>so  I want to show this information in XHTML page's data table.</p>