lazy lazy loading

When using the session.load(object) method, delayed loading will be performed on the acquired object, that is, the database will be queried and the data results will be loaded only when the getter method is executed to acquire the properties of the object.

If there is a relationship one-to-many or many-to-many in the pojo configuration file, the lazy attribute can be set. The default is lazy="true". The result is that the database is queried and the data is loaded when the getter method is executed.

Guess you like

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