title: JTable binding using netbeans GUI builder
body: <p>I have used netbeans GUI builder to bind a JTable to a simple mysql db called Products having a table called products. So a class with name "Products" was generated and I guess It's a bean (<strong>Am I right?If so ..then Why it was generated as a bean?</strong>) . I am reading the generated code for the purpose of learning and I found out that the Jtable is bound with a list coming from mysql result array </p>
  
  <pre><code>products_dbPUEntityManager = java.beans.Beans.isDesignTime() ? null : javax.persistence.Persistence.createEntityManagerFactory("products_dbPU").createEntityManager();
  productsQuery = java.beans.Beans.isDesignTime() ? null : products_dbPUEntityManager.createQuery("SELECT p FROM Products p");
  </code></pre>
  
  <p>I looked at <code>createEntityManager</code> and <code>createQuery</code> and they are both empty and I can't find where are they overridden .
  Where's the MYSQL connection code ? I have looked everywhere for something like that</p>
  
  <pre><code> Class.forName("com.mysql.jdbc.Driver");
   String connectionUrl = "jdbc:mysql://localhost/mysql?" +
                                     "user=root&amp;password=123456";
   Connection con = DriverManager.getConnection(connectionUrl);
   System.out.println("Connection Ok!");
   Statement stmt = null;
   ResultSet rs = null;
   //SQL query command
   String SQL = "SELECT * FROM products_db.products";
   stmt = con.createStatement();
   rs = stmt.executeQuery(SQL);
  </code></pre>
  
  <p>but I can't find it . What's missing ?</p>