A join is a query that combines results from multiple entities. Joins in JP QL queries are logically equivalent to SQL joins. Ultimately, once the query is translated to SQL, it is quite likely that the joins between entities will produce similar joins among the tables to which the entities are mapped. Understanding when joins occur is therefore important to writing efficient queries.
Share this highlighthttp://www.safaribooksonline.com/a/pro-jpa-2/58477/