title: Create a Join Query using CiriteriaBuilder JPA
body: <p>I need the following query to be get created using CriteriaBuilder</p>
  
  <pre><code>  SELECT Orders.OrderID, Customers.CustomerName
    FROM Orders
    INNER JOIN Customers ON Orders.CustomerID = Customers.CustomerID;
  </code></pre>
  
  <p>CriteriaBuilder Code:</p>
  
  <pre><code>  CriteriaBuilder builder = manager.getCriteriaBuilder();
      CriteriaQuery&lt;Customers&gt; criteriaQuery = builder.createQuery(Customers.class);
      Root&lt;Customers&gt; root = criteriaQuery.from(Customers.class);
      Join&lt;Customers, Orders&gt; emailTemplateMaster = root.join(Customers_.customerId, JoinType.INNER);
  </code></pre>
  
  <p><strong>Need not know the remaining code How to related the tables</strong></p>
  
  <p>I have used the Join functionality. But my question how to get the List of customers with orders.</p>