|
88 | 88 | <para> |
89 | 89 | This element has several optional attributes. The <literal>schema</literal> attribute |
90 | 90 | specifies that tables referred to by this mapping belong to the named schema. If specified, |
91 | | - tablenames will be qualified by the given schema name. If missing, tablenames will be |
| 91 | + table names will be qualified by the given schema name. If missing, table names will be |
92 | 92 | unqualified. The <literal>default-cascade</literal> attribute specifies what cascade style |
93 | 93 | should be assumed for properties and collections which do not specify a |
94 | 94 | <literal>cascade</literal> attribute. The <literal>auto-import</literal> attribute lets us |
|
230 | 230 | <callout arearefs="class3"> |
231 | 231 | <para> |
232 | 232 | <literal>discriminator-value</literal> (optional - defaults to the class name): A value |
233 | | - that distiguishes individual subclasses, used for polymorphic behaviour. Acceptable |
| 233 | + that distinguishes individual subclasses, used for polymorphic behaviour. Acceptable |
234 | 234 | values include <literal>null</literal> and <literal>not null</literal>. |
235 | 235 | </para> |
236 | 236 | </callout> |
|
470 | 470 | (unsaved), distinguishing it from transient instances that were saved or loaded |
471 | 471 | in a previous session. |
472 | 472 | </para> |
473 | | - </callout> |
| 473 | + </callout> |
474 | 474 | <callout arearefs="id5"> |
475 | 475 | <para> |
476 | 476 | <literal>access</literal> (optional - defaults to <literal>property</literal>): The |
|
570 | 570 | use this generator with a user-supplied connection.</emphasis> |
571 | 571 | </para> |
572 | 572 | <para> |
573 | | - You can use the "where" parameter to specify the row to use in a table. This is useful |
574 | | - if you want to use a single tabel for your identifiers, with different rows for each table. |
| 573 | + You can use the "where" parameter to specify the row to use in a table. This is useful |
| 574 | + if you want to use a single table for your identifiers, with different rows for each table. |
575 | 575 | </para> |
576 | 576 | </listitem> |
577 | 577 | </varlistentry> |
|
700 | 700 | The valid values for <literal>format</literal> are described in the MSDN documentation. |
701 | 701 | The default <literal>seperator</literal> is <literal>-</literal> and should rarely be |
702 | 702 | modified. The <literal>format</literal> determines if the configured |
703 | | - <literal>seperator</literal> can replace the default seperator used by |
| 703 | + <literal>seperator</literal> can replace the default separator used by |
704 | 704 | the <literal>format</literal>. |
705 | 705 | </para> |
706 | 706 | </sect3> |
|
776 | 776 | <para>Starting with NHibernate release 3.3.0, there are 2 new generators which |
777 | 777 | represent a re-thinking of 2 different aspects of identifier |
778 | 778 | generation. The first aspect is database portability; the second is |
779 | | - optimization Optimization means that you do not have to query the |
| 779 | + optimization. Optimization means that you do not have to query the |
780 | 780 | database for every request for a new identifier value. These two new |
781 | 781 | generators are intended to take the place of some of the named |
782 | 782 | generators described above, starting in 3.3.x. However, they are |
|
1013 | 1013 | You must instantiate an instance of the persistent class itself and populate its |
1014 | 1014 | identifier properties before you can <literal>load()</literal> the persistent state |
1015 | 1015 | associated with a composite key. We will describe a much more |
1016 | | - convenient approach where the composite identifier is implemented as a seperate class |
| 1016 | + convenient approach where the composite identifier is implemented as a separate class |
1017 | 1017 | in <xref linkend="components-compositeid"/>. The attributes described below apply only |
1018 | 1018 | to this alternative approach: |
1019 | 1019 | </para> |
|
1367 | 1367 | <para> |
1368 | 1368 | <literal>lazy</literal> (optional - defaults to <literal>false</literal>): |
1369 | 1369 | Specifies that this property is lazy. A lazy property is not loaded when |
1370 | | - the object is initially loaded, unless the fetch mode has been overriden |
| 1370 | + the object is initially loaded, unless the fetch mode has been overridden |
1371 | 1371 | in a specific query. Values for lazy properties are loaded when any lazy |
1372 | 1372 | property of the object is accessed. |
1373 | 1373 | </para> |
|
1673 | 1673 | specifies that the mapped columns should be included in SQL <literal>UPDATE</literal> |
1674 | 1674 | and/or <literal>INSERT</literal> statements. Setting both to <literal>false</literal> |
1675 | 1675 | allows a pure "derived" association whose value is initialized from some other |
1676 | | - property that maps to the same colum(s) or by a trigger or other application. |
| 1676 | + property that maps to the same column(s) or by a trigger or other application. |
1677 | 1677 | </para> |
1678 | 1678 | </callout> |
1679 | 1679 | <callout arearefs="manytoone8"> |
|
1699 | 1699 | <para> |
1700 | 1700 | <literal>optimistic-lock</literal> (optional - defaults to <literal>true</literal>): |
1701 | 1701 | Specifies that updates to this property do or do not require acquisition of the |
1702 | | - optimistic lock. In other words, dertermines if a version increment should occur when |
| 1702 | + optimistic lock. In other words, determines if a version increment should occur when |
1703 | 1703 | this property is dirty. |
1704 | 1704 | </para> |
1705 | 1705 | </callout> |
|
1889 | 1889 | </class>]]></programlisting> |
1890 | 1890 |
|
1891 | 1891 | <para> |
1892 | | - A newly saved instance of <literal>Person</literal> is then assigned the same primar |
1893 | | - key value as the <literal>Employee</literal> instance refered with the <literal>Employee</literal> |
| 1892 | + A newly saved instance of <literal>Person</literal> is then assigned the same primary |
| 1893 | + key value as the <literal>Employee</literal> instance referred with the <literal>Employee</literal> |
1894 | 1894 | property of that <literal>Person</literal>. |
1895 | 1895 | </para> |
1896 | 1896 |
|
|
2027 | 2027 |
|
2028 | 2028 | <para> |
2029 | 2029 | The <literal><component></literal> element allows a <literal><parent></literal> |
2030 | | - subelement that maps a property of the component class as a reference back to the |
| 2030 | + sub-element that maps a property of the component class as a reference back to the |
2031 | 2031 | containing entity. |
2032 | 2032 | </para> |
2033 | 2033 |
|
|
2178 | 2178 | <para> |
2179 | 2179 | <literal>name</literal>: The fully qualified .NET class name of the |
2180 | 2180 | subclass, including its assembly name. |
2181 | | - </para> |
2182 | | - </callout> |
| 2181 | + </para> |
| 2182 | + </callout> |
2183 | 2183 | <callout arearefs="subclass2"> |
2184 | 2184 | <para> |
2185 | 2185 | <literal>discriminator-value</literal> (optional - defaults to the class name): A |
2186 | | - value that distiguishes individual subclasses. |
2187 | | - </para> |
| 2186 | + value that distinguishes individual subclasses. |
| 2187 | + </para> |
2188 | 2188 | </callout> |
2189 | 2189 | <callout arearefs="subclass3"> |
2190 | 2190 | <para> |
2191 | 2191 | <literal>proxy</literal> (optional): Specifies a class or interface to use for |
2192 | 2192 | lazy initializing proxies. |
2193 | | - </para> |
| 2193 | + </para> |
2194 | 2194 | </callout> |
2195 | 2195 | <callout arearefs="subclass4"> |
2196 | 2196 | <para> |
|
2247 | 2247 | <callout arearefs="joinedsubclass1"> |
2248 | 2248 | <para> |
2249 | 2249 | <literal>name</literal>: The fully qualified class name of the subclass. |
2250 | | - </para> |
2251 | | - </callout> |
| 2250 | + </para> |
| 2251 | + </callout> |
2252 | 2252 | <callout arearefs="joinedsubclass2"> |
2253 | 2253 | <para> |
2254 | | - <literal>proxy</literal> (optional): Specifies a class or interface to use |
| 2254 | + <literal>proxy</literal> (optional): Specifies a class or interface to use |
2255 | 2255 | for lazy initializing proxies. |
2256 | | - </para> |
| 2256 | + </para> |
2257 | 2257 | </callout> |
2258 | 2258 | <callout arearefs="joinedsubclass3"> |
2259 | 2259 | <para> |
2260 | | - <literal>lazy</literal> (optional): Setting <literal>lazy="true"</literal> is a shortcut |
2261 | | - equalivalent to specifying the name of the class itself as the <literal>proxy</literal> |
| 2260 | + <literal>lazy</literal> (optional): Setting <literal>lazy="true"</literal> is a shortcut |
| 2261 | + equivalent to specifying the name of the class itself as the <literal>proxy</literal> |
2262 | 2262 | interface. |
2263 | 2263 | </para> |
2264 | | - </callout> |
| 2264 | + </callout> |
2265 | 2265 | </calloutlist> |
2266 | 2266 | </programlistingco> |
2267 | 2267 |
|
|
3096 | 3096 | <title>SQL quoted identifiers</title> |
3097 | 3097 | <para> |
3098 | 3098 | You may force NHibernate to quote an identifier in the generated SQL by enclosing the table or |
3099 | | - column name in backticks in the mapping document. NHibernate will use the correct quotation |
| 3099 | + column name in back-ticks in the mapping document. NHibernate will use the correct quotation |
3100 | 3100 | style for the SQL <literal>Dialect</literal> (usually double quotes, but brackets for SQL |
3101 | | - Server and backticks for MySQL). |
| 3101 | + Server and back-ticks for MySQL). |
3102 | 3102 | </para> |
3103 | 3103 |
|
3104 | 3104 | <programlisting><![CDATA[<class name="LineItem" table="`Line Item`"> |
|
3113 | 3113 | <title>Modular mapping files</title> |
3114 | 3114 | <para> |
3115 | 3115 | It is possible to define <literal>subclass</literal> and <literal>joined-subclass</literal> |
3116 | | - mappings in seperate mapping documents, directly beneath <literal>hibernate-mapping</literal>. |
3117 | | - This allows you to extend a class hierachy just by adding a new mapping file. You must |
| 3116 | + mappings in separate mapping documents, directly beneath <literal>hibernate-mapping</literal>. |
| 3117 | + This allows you to extend a class hierarchy just by adding a new mapping file. You must |
3118 | 3118 | specify an <literal>extends</literal> attribute in the subclass mapping, naming a previously |
3119 | 3119 | mapped superclass. Use of this feature makes the ordering of the mapping documents important! |
3120 | 3120 | </para> |
|
3141 | 3141 | issues a select afterwards to retrieve the generated values. |
3142 | 3142 | </para> |
3143 | 3143 | <para> |
3144 | | - Properties marked as generated must additionally be non-insertable and non-updateable. |
| 3144 | + Properties marked as generated must additionally be non-insertable and non-updatable. |
3145 | 3145 | Only <xref linkend="mapping-declaration-version">versions</xref>, |
3146 | 3146 | <xref linkend="mapping-declaration-timestamp">timestamps</xref>, and |
3147 | 3147 | <xref linkend="mapping-declaration-property">simple properties</xref> can be marked as |
|
0 commit comments