Generally speaking, there are three commonly used settings for the lazy attribute. Default: select. The results are returned directly after querying the database. dynamic. After querying the database, the query result object is returned instead of the query result. You can perform other operations on this object. joined: It also returns the query result object, but it has a function that includes join operations for database operations.
I can’t type many answers by typing on my phone. You can take a look at the notes I summarized from my own experiments, I hope it helps.
Generally speaking, there are three commonly used settings for the lazy attribute.
Default: select. The results are returned directly after querying the database.
dynamic. After querying the database, the query result object is returned instead of the query result. You can perform other operations on this object.
joined: It also returns the query result object, but it has a function that includes join operations for database operations.
I can’t type many answers by typing on my phone.
You can take a look at the notes I summarized from my own experiments, I hope it helps.
http://blog.csdn.net/bestalle...