Summary of relationships in hbm.xml in hibernate

By default, hibernate is only in one-to-one associations. When querying the main object, the association query is performed once to get the query results. Others (many-to-many, many-to-one, one-to-many, one-to-one query slave objects) The query is divided into two queries to get the query results.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326406849&siteId=291194637