What is Lazy Collection Setting?

Setting lazy collection for association

  1. Open specification dialog box of association.
  2. 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
    Lazy collection setting

Setting default lazy collection when generating ORM

  1. Open Database Code Generation dialog box.
  2. Specify a value for Default Lazy Collection Initialization.
    Default lazy collection setting
    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

We use cookies to offer you a better experience. By visiting our website, you agree to the use of cookies as described in our Cookie Policy.OK