title: JSF retrieving data from multiple tables
body: <p>I'm trying to show data from multiple tables on a jsf page.
  The page is bound with the backing bean.
  Now, there are many ways to do it.</p>
  
  <p>Method 1: I can get the entire table_row on the entity object generated by hibernate using the entity objects.
  Method 2: I can create POJO's (Value beans) which hold the data and write queries myself in HQL.</p>
  
  <p>NOTE : The data is coming from multiple tables.</p>
  
  <p>Some people suggested the first method and some suggested the second.
  Now the question is
  <strong>When i need specific columns of specific tables, why do i retrieve a whole row from the db but on the other hand a thought comes that what are the entities for, then ?</strong></p>
  
  <p>I hope i explained my problem well.
  Please guide.</p>