Chapter 25. Code Engineering

  1. Home
  2. Docs
  3. Chapter 25. Code Engineering
  4. 5. Object Relational Mapping
  5. Using lazy collection setting

Using lazy collection setting

Download PDF

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

Setting default lazy collection when generating ORM

  1. Open Database Code Generation window.
  2. Specify a value for Default Lazy Collection Initialization.
    Default lazy collection setting