title: Display Hibernate Query in JTable
body: <p>I'm seeking an efficient way to display an SQL table queried via Hibernate in a JTable.</p>
  
  <pre><code>    Query q = em.createNamedQuery("Files.findAll");
      List rl = q.getResultList();
  </code></pre>
  
  <p>It would probably be preferable to use the List returned by that (In this case, that would make a list of Files objects (where Files is an internal class, <strong>not</strong> java.io.File)), but I won't be picky as long as it is neat.</p>
  
  <p>I have one answer I worked up below, but that doesn't work very well. I'd going to end up having to write a TableModel for it if I keep going down this path.</p>