Skip to content

Commit e138806

Browse files
author
Pierre Henri Kuate
committed
Minor changes here and there
SVN: trunk@2629
1 parent 725d0e2 commit e138806

File tree

5 files changed

+27
-24
lines changed

5 files changed

+27
-24
lines changed

doc/reference/modules/basic_mapping.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666

6767
<para>
6868
All XML mappings should declare the XML namespace shown. The actual schema definition
69-
may be found in the <literal>src\nhibernate-mapping-2.2.xsd</literal> file in the
69+
may be found in the <literal>src\nhibernate-mapping.xsd</literal> file in the
7070
NHibernate distribution.
7171
</para>
7272

doc/reference/modules/nhibernate_mapping_attributes.xml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
<para>
3939
<important>
4040
<para>
41-
This library is generated using the file <filename>/src/NHibernate.Mapping.Attributes/nhibernate-mapping-2.2.xsd</filename>
41+
This library is generated using the file <filename>/src/NHibernate.Mapping.Attributes/nhibernate-mapping.xsd</filename>
4242
(which is embedded in the assembly to be able to validate generated XML streams).
4343
As this file can change at each new release of NHibernate, you should regenerate it before using it
4444
with a different version (open the Generator solution, compile and run the Generator project).
@@ -231,7 +231,7 @@ Illustration:<programlisting><![CDATA[
231231
X(3) will always belong to C(1) ! (as X(2)).
232232
</para>
233233
<para>It is the case for <literal>&lt;dynamic-component&gt;</literal> and <literal>&lt;nested-composite-element&gt;</literal>.</para>
234-
<para>Another bad news is that, currently, XML elements coming after this elements can not be included in them. Eg: There is no way put a collection in <literal>&lt;dynamic-component&gt;</literal>. The reason is that the file <filename>nhibernate-mapping-2.2.xsd</filename> tells how elements are built and in which order, and NHibernate.Mapping.Attributes use this order.</para>
234+
<para>Another bad news is that, currently, XML elements coming after this elements can not be included in them. Eg: There is no way put a collection in <literal>&lt;dynamic-component&gt;</literal>. The reason is that the file <filename>nhibernate-mapping.xsd</filename> tells how elements are built and in which order, and NHibernate.Mapping.Attributes use this order.</para>
235235
<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>
236236
<para>For now, you can fallback on <classname>[RawXml]</classname>.</para>
237237

@@ -242,21 +242,21 @@ Illustration:<programlisting><![CDATA[
242242

243243
<section id="mapping-attributes-devnotes">
244244
<title>Developer Notes</title>
245-
<para>Any change to the schema (<filename>nhibernate-mapping-2.2.xsd</filename>) implies:</para>
245+
<para>Any change to the schema (<filename>nhibernate-mapping.xsd</filename>) implies:</para>
246246
<orderedlist>
247247
<listitem>
248248
<para>Checking if there is any change to do in the Generator (like updating KnowEnums / AllowMultipleValue / IsRoot / IsSystemType / IsSystemEnum / CanContainItself)</para>
249249
</listitem>
250250
<listitem>
251-
<para>Updating <filename>/src/NHibernate.Mapping.Attributes/nhibernate-mapping-2.2.xsd</filename> (copy/paste) and running the Generator again (even if it wasn't modified)</para>
251+
<para>Updating <filename>/src/NHibernate.Mapping.Attributes/nhibernate-mapping.xsd</filename> (copy/paste) and running the Generator again (even if it wasn't modified)</para>
252252
</listitem>
253253
<listitem>
254-
<para>Running the Test project and make sure that no exception is thrown. A class/property should be modified/added in this project to be sure that any new breaking change will be caught (=> update the reference hbm.xml files and/or the project <filename>NHibernate.Mapping.Attributes-1.1.csproj</filename>)</para>
254+
<para>Running the Test project and make sure that no exception is thrown. A class/property should be modified/added in this project to be sure that any new breaking change will be caught (=> update the reference hbm.xml files and/or the project <filename>NHibernate.Mapping.Attributes-2.0.csproj</filename>)</para>
255255
</listitem>
256256
</orderedlist>
257257
<para>This implementation is based on NHibernate mapping schema; so there is probably lot of "standard schema features" that are not supported...</para>
258258
<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>
259-
<para>In the design of this project, performance is a (<emphasis>very</emphasis>) minor goal :) Easier implementation and maintenance are far more important because you can (and should) avoid to use this library in production.</para>
259+
<para>In the design of this project, performance is a (<emphasis>very</emphasis>) minor goal :) Easier implementation and maintenance are far more important because you can (and should) avoid to use this library in production (Cf. the first tip in <xref linkend="mapping-attributes-tips"/>).</para>
260260
</section>
261261

262262

doc/reference/modules/performance.xml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -808,12 +808,11 @@ ICat fritz = (ICat) iter.Current;]]></programlisting>
808808

809809
<table frame="topbot">
810810
<title>Cache Concurrency Strategy Support</title>
811-
<tgroup cols='5' align='left' colsep='1' rowsep='1'>
811+
<tgroup cols='4' align='left' colsep='1' rowsep='1'>
812812
<colspec colname='c1' colwidth="1*"/>
813813
<colspec colname='c2' colwidth="1*"/>
814814
<colspec colname='c3' colwidth="1*"/>
815815
<colspec colname='c4' colwidth="1*"/>
816-
<colspec colname='c5' colwidth="1*"/>
817816
<thead>
818817
<row>
819818
<entry>Cache</entry>
@@ -1116,15 +1115,15 @@ sessionFactory.EvictCollection("Eg.Cat.Kittens"); //evict all kitten collections
11161115

11171116
<para>
11181117
However, suppose that we remove eighteen elements, leaving two and then add thee new elements.
1119-
There are two possible ways to proceed
1118+
There are two possible ways to proceed:
11201119
</para>
11211120

11221121
<itemizedlist>
11231122
<listitem>
1124-
<para>delete eighteen rows one by one and then insert three rows</para>
1123+
<para>Delete eighteen rows one by one and then insert three rows</para>
11251124
</listitem>
11261125
<listitem>
1127-
<para>remove the whole collection (in one SQL <literal>DELETE</literal>) and insert
1126+
<para>Remove the whole collection (in one SQL <literal>DELETE</literal>) and insert
11281127
all five current elements (one by one)</para>
11291128
</listitem>
11301129
</itemizedlist>

doc/reference/modules/preface.xml

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,21 +48,23 @@
4848
<para>
4949
Use this reference documentation as your primary source of information.
5050
Consider reading <emphasis>Hibernate in Action</emphasis>
51-
(http://www.manning.com/bauer) if you need more help with application
52-
design or if you prefer a step-by-step tutorial. Also visit
53-
http://nhibernate.sourceforge.net/NHibernateEg/ for NHibernate
51+
(<ulink url="http://www.manning.com/bauer/" />)
52+
or the work-in-progress <emphasis>NHibernate in Action</emphasis>
53+
(<ulink url="http://www.manning.com/kuate/" />) if you need more help
54+
with application design or if you prefer a step-by-step tutorial. Also visit
55+
<ulink url="http://nhibernate.sourceforge.net/NHibernateEg/" /> for NHibernate
5456
tutorial with examples.
5557
</para>
5658
</listitem>
5759
<listitem>
5860
<para>
59-
FAQs are answered on the NHibernate website.
61+
FAQs are answered on the <ulink url="http://www.nhibernate.org/">NHibernate website</ulink>.
6062
</para>
6163
</listitem>
6264
<listitem>
6365
<para>
64-
Third party demos, examples and tutorials are linked on the NHibernate
65-
website.
66+
Third party demos, examples and tutorials are linked on the
67+
<ulink url="http://www.hibernate.org/365.html">NHibernate Resources page</ulink>.
6668
</para>
6769
</listitem>
6870
<listitem>
@@ -75,10 +77,12 @@
7577
</orderedlist>
7678

7779
<para>
78-
If you have questions, use the user forum linked on the NHibernate website. We also
79-
provide a JIRA issue trackings system for bug reports and feature requests. If you
80-
are interested in the development of NHibernate, join the developer mailing list. If
81-
you are interested in translating this documentation into your language, contact us
82-
on the developer mailing list.
80+
If you have questions, use the
81+
<ulink url="http://forum.hibernate.org/viewforum.php?f=25">NHibernate user forum</ulink>.
82+
We also provide a <ulink url="http://jira.nhibernate.org/">JIRA issue trackings system</ulink>
83+
for bug reports and feature requests.
84+
If you are interested in the development of NHibernate, join the developer mailing list.
85+
If you are interested in translating this documentation into your language, contact us
86+
on the <ulink url="http://sourceforge.net/mail/?group_id=29446">developer mailing list</ulink>.
8387
</para>
8488
</preface>

doc/reference/modules/transactions.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ finally
528528
<listitem>
529529
<para>
530530
<literal>OnClose</literal> - is essentially the legacy behavior described above. The
531-
NHibernate session obatins a connection when it first needs to perform some database
531+
NHibernate session obtains a connection when it first needs to perform some database
532532
access and holds unto that connection until the session is closed.
533533
</para>
534534
</listitem>

0 commit comments

Comments
 (0)