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
 

Technical Support

Have technical issues or suggestions? Please contact Visual Paradigm Support Team.

Sales Support

Have questions related to registration, licensing or payment? Feel free to contact Visual Paradigm Sales Team.

Discussion Forum

Share your suggestions of opinions at VP Discussion Forum.