SQL Server connection (inner join, outer join, cross-connect) and multi-table queries hql

See also:

Detailed SQL Server connection (the connector, the external connector, cross-connect)

 

See also:

Hibernate HQL multi-table query

Compared to sql statement multi-table join query, hql statements feeling less related conditions, but in fact the statement which pointed out the connection relationship (m included roles attribute)

eg:

from menu m inner join fetch m.roles r inner join fetch r.users u where u.id=?;(menu多-多role多-多user关系)

select * from Table. 1 Inner the Join Table 2 ON link condition where the query condition;

Guess you like

Origin blog.csdn.net/hello_world123456789/article/details/88942246