title: Is there a way to use hql without classes?
body: <p>The scenario is: in my system, the user will be able to define a query to a database using some kind of metadata.</p>
  
  <p>Example: the user will define some parameters such as:</p>
  
  <pre><code> -DatabaseType: Oracle 11g
   -ConnectionProperties: (user, password, server, etc)
   -TableName: TAB1
   -Columns: COL1, COL2
   -Filters: COL3=2 ; COL2=5
  </code></pre>
  
  <p>That way, I don't know previously what will be returned, and thus I don't have a class that matches the resultSet returned by this query.</p>
  
  <p>That said, the problem is: can I build a HQL query using these "metadata" even without a class that match the result (like TAB1 with COL1 and COL2)?</p>
  
  <p>FAQ: -"Why do you want to use HQL and not SQL" Answer: to be database-independent.</p>
  
  <p>Thanks, and please tell me if I wasn't clear enough :)</p>