What is Lazy Collection Setting?
Setting lazy collection for association
- Open specification dialog box of association.
- Switch to ORM Association Detail tab, select Lazy or Extra for From lazy initialization or To lazy initialization, depending on which side multiplicity is *. Lazy collection is fetched when the application invokes an operation upon that collection. Extra lazy supports individual elements of the collection are accessed from the database as needed, rather than fetch the whole collection. If the value is Unspecified, it will follow the default lazy collection setting described below.
Lazy collection setting
Setting default lazy collection when generating ORM
- Open Database Code Generation dialog box.
- Specify a value for Default Lazy Collection Initialization.
Default lazy collection setting
Related Resources
The following resources may help you to learn more about the topic discussed in this page.
1. Generating code and database | Table of Contents | 3. Persistent API |