Skip to content

Commit cd8e695

Browse files
Fix some more typo
1 parent 770a8ec commit cd8e695

File tree

3 files changed

+16
-13
lines changed

3 files changed

+16
-13
lines changed

doc/reference/modules/basic_mapping.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
Note that, even though many NHibernate users choose to define XML mappings by hand,
1616
a number of tools exist to generate the mapping document, even transparently at runtime.
1717
This includes the <link linkend="mapping-attributes">NHibernate.Mapping.Attributes
18-
library</link> which allows to directly annotate your entities with mapping declaration,
18+
library</link> which allows to directly annotate your entities with mapping declarations,
1919
various template-based code generators (CodeSmith, MyGeneration), the built-in
2020
<literal>NHibernate.Mapping.ByCode</literal> API available since NHibernate 3.2, or
2121
the <ulink url="https://github.com/jagregory/fluent-nhibernate">Fluent NHibernate</ulink>

doc/reference/modules/nhibernate_mapping_attributes.xml

Lines changed: 14 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
<orderedlist>
1818
<listitem>
1919
<para>
20-
<emphasis role="strong">NHibernate.Mapping.Attributes</emphasis>: That is the only assembly you need (as end-user).</para>
20+
<emphasis role="strong">NHibernate.Mapping.Attributes</emphasis>: that is the only assembly you need (as an end-user).</para>
2121
</listitem>
2222
<listitem>
2323
<para>
@@ -32,7 +32,7 @@
3232
<para>
3333
<ulink url="http://mbunit.tigris.org/">
3434
<emphasis role="strong">Refly</emphasis>
35-
</ulink>: thanks to <ulink url="http://www.dotnetwiki.org/">Jonathan de Halleux</ulink> for this library which make it so easy to generate code.</para>
35+
</ulink>: thanks to <ulink url="http://www.dotnetwiki.org/">Jonathan de Halleux</ulink> for this library which makes it so easy to generate code.</para>
3636
</listitem>
3737
</orderedlist>
3838
</para>
@@ -78,15 +78,17 @@ public class MappedSubClass : Base { }</programlisting>
7878
<para>
7979
It is possible to register patterns (using Regular Expressions) to automatically transform fully qualified names of properties types
8080
into something else. Eg: <literal>HbmSerializer.Default.HbmWriter.Patterns.Add(@"Namespace\.(\S+), Assembly", "$1");</literal> will
81-
map all properties with a not-qualified type name.</para>
81+
map all properties with a not-qualified type name.
82+
</para>
8283
</listitem>
8384
<listitem>
8485
<para>
8586
Two methods have been added to the <literal>HbmSerializer</literal> class, allowing generating mappings from a type or an assembly:
8687
<literal>HbmSerializer.Default.Serialize(typeof(XXX))</literal> and
8788
<literal>HbmSerializer.Default.Serialize(typeof(XXX).Assembly)</literal>. So it is no longer required to create a MemoryStream for
8889
these simple cases. The output of these call can be directly added to your NHibernate <literal>Configuration</literal> instance:
89-
<literal>cfg.AddInputStream(HbmSerializer.Default.Serialize(typeof(XXX)))</literal>.</para>
90+
<literal>cfg.AddInputStream(HbmSerializer.Default.Serialize(typeof(XXX)))</literal>.
91+
</para>
9092
</listitem>
9193
<listitem>
9294
<para>Two <methodname>WriteUserDefinedContent()</methodname> methods have been added to <classname>HbmWriter</classname>. They improve the extensibility of this library; it is now very easy to create a .NET attribute and integrate it in the mapping.</para>
@@ -99,13 +101,14 @@ public class MappedSubClass : Base { }</programlisting>
99101
</listitem>
100102
<listitem>
101103
<para>
102-
A notable "bug" fix is the re-ordering of (joined-)subclasses; This operation may be required when a subclass extends another subclass.
104+
A notable "bug" fix is the re-ordering of (joined-)subclasses. This operation may be required when a subclass extends another subclass.
103105
In this case, the extended class mapping must come before the extending class mapping. Note that the re-ordering takes place only for
104106
"top-level" classes (that is not nested in other mapped classes). Anyway, it is quite unusual to put an interdependent mapped subclasses
105-
in a mapped class.</para>
107+
in a mapped class.
108+
</para>
106109
</listitem>
107110
<listitem>
108-
<para>There are also many other little changes; refer to the release notes for more details.</para>
111+
<para>There are also many other little changes: refer to the release notes for more details.</para>
109112
</listitem>
110113
</orderedlist>
111114
</section>
@@ -166,8 +169,8 @@ cfg.AddInputStream(HbmSerializer.Default.Serialize(
166169
<para>
167170
Use <methodname>HbmSerializer.Validate</methodname> to enable/disable the validation of generated xml streams (against
168171
NHibernate mapping schema). This is useful to quickly find errors. (They are written in the StringBuilder property
169-
<methodname>HbmSerializer.Error</methodname>.) If the error is due to this library, then see if it is a know issue and report it.
170-
You are welcome to contribute a solution if you solve the problem :).</para>
172+
<methodname>HbmSerializer.Error</methodname>.) If the error is due to this library, then see if it is a known issue and report it.
173+
You are welcome to contribute a solution if you solve the trouble :).</para>
171174
</listitem>
172175
<listitem>
173176
<para>Your classes, fields and properties (members) can be private; just make sure that you have the permission to access private members using reflection (<methodname>ReflectionPermissionFlag.MemberAccess</methodname>).</para>
@@ -262,7 +265,7 @@ public MyType MyProperty;</programlisting>
262265
<para>Anyway, the solution would be to add a <methodname>int ParentNode</methodname> property to BaseAttribute so that you can create a real graph...</para>
263266
<para>For now, you can fallback on <classname>[RawXml]</classname>.</para>
264267

265-
<para>Actually, there is no other know issue nor planned modification. This library should be stable and complete; but if you find a bug or think of an useful improvement, contact us!</para>
268+
<para>Actually, there is no other know issue nor planned modification. This library should be stable and complete. But if you find a bug or think of an useful improvement, contact us!</para>
266269
<para>As a side note, it would be nice to write a better TestFixture than <emphasis>NHibernate.Mapping.Attributes.Test</emphasis> :D.</para>
267270
</section>
268271

@@ -292,7 +295,7 @@ public MyType MyProperty;</programlisting>
292295
</para>
293296
</listitem>
294297
</orderedlist>
295-
<para>This implementation is based on NHibernate mapping schema; so there is probably lot of "standard schema features" that are not supported...</para>
298+
<para>This implementation is based on NHibernate mapping schema. So there is probably lot of "standard schema features" that are not supported...</para>
296299
<para>The version of NHibernate.Mapping.Attributes should be the version of the NHibernate schema used to generate it (=> the version of NHibernate library).</para>
297300
<para>
298301
In the design of this project, performance is a (<emphasis>very</emphasis>) minor goal :). Easier implementation and maintenance

doc/reference/modules/quickstart.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,7 +155,7 @@
155155
<title>Mapping the cat</title>
156156

157157
<para>
158-
This tutorial directly uses xml mapping files. This is just one among many mapping solution
158+
This tutorial directly uses xml mapping files. This is just one among many mapping solutions
159159
NHibernate provides, see <xref linkend="mapping-declaration" />.
160160
</para>
161161
<para>

0 commit comments

Comments
 (0)