title: Java lib to work on mySQL with object oriented syntax?
body: <p>Beginner in SQL, coming from MongoDB.</p>
  
  <p>I see libs that write SQL queries with Strings like:</p>
  
  <pre><code>String sql =
      "SELECT id, category, duedate " +
      "FROM tasks " +
      "WHERE category = :category";
  </code></pre>
  
  <p>then one must take this <code>sql String</code> and write something like: <code>List&lt;Task&gt; tasks = con.createQuery(sql);</code></p>
  
  <p>My question:
  Imagine a db made of tables where each line in the table is considered an object.
  Is there a library for mySQL where the syntax would be more like:</p>
  
  <pre><code>List&lt;Object&gt; results = db.query().select(Object.oneField).where(Object.oneField.equals("myString").from(db.MyTable);
  </code></pre>
  
  <p>Note: the mySQL db is already created, I am not the owner.</p>