|
1694 | 1694 | <area id="property15" coords="16 55" />
|
1695 | 1695 | <area id="property16" coords="17 55" />
|
1696 | 1696 | <area id="property17" coords="18 55" />
|
| 1697 | + <area id="property18" coords="19 55" /> |
1697 | 1698 | </areaspec>
|
1698 | 1699 | <programlisting><![CDATA[<property
|
1699 | 1700 | name="propertyName"
|
|
1706 | 1707 | optimistic-lock="true|false"
|
1707 | 1708 | generated="never|insert|always"
|
1708 | 1709 | lazy="true|false"
|
| 1710 | + lazy-group="groupName" |
1709 | 1711 | not-null="true|false"
|
1710 | 1712 | unique="true|false"
|
1711 | 1713 | unique-key="uniqueKeyName"
|
|
1773 | 1775 | <literal>lazy</literal> (optional - defaults to <literal>false</literal>):
|
1774 | 1776 | specifies that this property is lazy. A lazy property is not loaded when
|
1775 | 1777 | the object is initially loaded, unless the fetch mode has been overridden
|
1776 |
| - in a specific query. Values for lazy properties are loaded when any lazy |
1777 |
| - property of the object is accessed. Having lazy properties causes instances |
1778 |
| - of the entity to be loaded as proxies. Theses proxies ignore the class |
1779 |
| - <literal>proxy</literal> setting and always derives from the persistent class, |
1780 |
| - requiring its members to be overridable. |
| 1778 | + in a specific query. Values for lazy properties are loaded per lazy-group. |
| 1779 | + </para> |
| 1780 | + <para> |
| 1781 | + Having lazy properties causes instances of the entity to be loaded as proxies. |
| 1782 | + Theses proxies ignore the class <literal>proxy</literal> setting and always |
| 1783 | + derives from the persistent class, requiring its members to be overridable. |
| 1784 | + </para> |
| 1785 | + </callout> |
| 1786 | + <callout arearefs="property11"> |
| 1787 | + <para> |
| 1788 | + <literal>lazy-group</literal> (optional - defaults to <literal>DEFAULT</literal>): |
| 1789 | + if the property is lazy, its lazy-loading group. When a lazy property is accessed, |
| 1790 | + the other lazy properties of the lazy group are also loaded with it. |
1781 | 1791 | </para>
|
1782 | 1792 | </callout>
|
1783 |
| - <callout arearefs="property11"> |
| 1793 | + <callout arearefs="property12"> |
1784 | 1794 | <para>
|
1785 | 1795 | <literal>not-null</literal> (optional - defaults to <literal>false</literal>):
|
1786 | 1796 | sets the column nullability for DDL generation.
|
1787 | 1797 | </para>
|
1788 | 1798 | </callout>
|
1789 |
| - <callout arearefs="property12"> |
| 1799 | + <callout arearefs="property13"> |
1790 | 1800 | <para>
|
1791 | 1801 | <literal>unique</literal> (optional - defaults to <literal>false</literal>):
|
1792 | 1802 | sets the column uniqueness for DDL generation. Use <literal>unique-key</literal>
|
1793 | 1803 | instead if the value is unique only in combination with other properties.
|
1794 | 1804 | </para>
|
1795 | 1805 | </callout>
|
1796 |
| - <callout arearefs="property13"> |
| 1806 | + <callout arearefs="property14"> |
1797 | 1807 | <para>
|
1798 | 1808 | <literal>unique-key</literal> (optional):
|
1799 | 1809 | a logical name for an unique index for DDL generation. The column will be included in
|
1800 | 1810 | the index, along with other columns sharing the same <literal>unique-key</literal>
|
1801 | 1811 | logical name. The actual index name depends on the dialect.
|
1802 | 1812 | </para>
|
1803 | 1813 | </callout>
|
1804 |
| - <callout arearefs="property14"> |
| 1814 | + <callout arearefs="property15"> |
1805 | 1815 | <para>
|
1806 | 1816 | <literal>index</literal> (optional):
|
1807 | 1817 | a logical name for an index for DDL generation. The column will be included in
|
1808 | 1818 | the index, along with other columns sharing the same <literal>index</literal> logical
|
1809 | 1819 | name. The actual index name depends on the dialect.
|
1810 | 1820 | </para>
|
1811 | 1821 | </callout>
|
1812 |
| - <callout arearefs="property15"> |
| 1822 | + <callout arearefs="property16"> |
1813 | 1823 | <para>
|
1814 | 1824 | <literal>length</literal> (optional): if the type takes a length and does not
|
1815 | 1825 | already specify it, its length.
|
1816 | 1826 | </para>
|
1817 | 1827 | </callout>
|
1818 |
| - <callout arearefs="property16"> |
| 1828 | + <callout arearefs="property17"> |
1819 | 1829 | <para>
|
1820 | 1830 | <literal>precision</literal> (optional): if the type takes a precision and does not
|
1821 | 1831 | already specify it, its precision.
|
1822 | 1832 | </para>
|
1823 | 1833 | </callout>
|
1824 |
| - <callout arearefs="property17"> |
| 1834 | + <callout arearefs="property18"> |
1825 | 1835 | <para>
|
1826 | 1836 | <literal>scale</literal> (optional): if the type takes a scale and does not
|
1827 | 1837 | already specify it, its scale.
|
|
2598 | 2608 | <area id="component6" coords="7 60"/>
|
2599 | 2609 | <area id="component7" coords="8 60"/>
|
2600 | 2610 | <area id="component8" coords="9 60"/>
|
| 2611 | + <area id="component9" coords="10 60"/> |
2601 | 2612 | </areaspec>
|
2602 | 2613 | <programlisting><![CDATA[<component
|
2603 | 2614 | name="propertyName"
|
|
2607 | 2618 | access="field|property|nosetter|className"
|
2608 | 2619 | optimistic-lock="true|false"
|
2609 | 2620 | lazy="true|false"
|
| 2621 | + lazy-group="groupName" |
2610 | 2622 | unique="true|false">
|
2611 | 2623 |
|
2612 | 2624 | <property ... />
|
|
2660 | 2672 | </para>
|
2661 | 2673 | </callout>
|
2662 | 2674 | <callout arearefs="component8">
|
| 2675 | + <para> |
| 2676 | + <literal>lazy-group</literal> (optional - defaults to <literal>DEFAULT</literal>): |
| 2677 | + If the component is lazy, its lazy-loading group. When a lazy property is accessed |
| 2678 | + on an object, included when the property is a component, the other lazy properties |
| 2679 | + of the lazy group are also loaded with it. |
| 2680 | + </para> |
| 2681 | + </callout> |
| 2682 | + <callout arearefs="component9"> |
2663 | 2683 | <para>
|
2664 | 2684 | <literal>unique</literal> (optional - defaults to <literal>false</literal>): Specifies
|
2665 | 2685 | that an unique constraint exists upon all mapped columns of the component.
|
|
0 commit comments