-----------------siwuxie095
Hibernate Query method
1. Object Navigation query
Navigates to its associated object based on an object that has already been loaded
Take accounts and contacts as examples (one-to-many), as follows:
according to ID queries a customer and then queries all the contacts in the account
2. OID query
according to ID queries A record, returns an object
3. HQL query
Query object: Implementing queries using the HQL statement
4. QBC query
Criteria object: Call method implementation query directly (no write statement required)
5. local SQL query
SQLQuery objects: Implementing queries using plain SQL statements
Supplement: This article should have been Hibernate many-to-many queries and objects
Between the navigation query and the OID query (Category: Hibernate)
"Made by siwuxie095"
Hibernate Query method (complement)