@@ -256,18 +256,11 @@ namespace Eg
256
256
(using <literal >Dictionaries</literal > of <literal >Dictionary</literal >s at runtime) . With this approach, you don't
257
257
write persistent classes, only mapping files.
258
258
</para >
259
-
260
- <para >
261
- By default, NHibernate works in normal POCO mode. You may set a default entity
262
- representation mode for a particular <literal >ISessionFactory</literal > using the
263
- <literal >default_entity_mode</literal > configuration option (see
264
- <xref linkend =" configuration-optional-properties" />.
265
- </para >
266
-
259
+
267
260
<para >
268
261
The following examples demonstrates the representation using <literal >Map</literal >s (Dictionary).
269
262
First, in the mapping file, an <literal >entity-name</literal > has to be declared
270
- instead of (or in addition to) a class name:
263
+ instead of a class name:
271
264
</para >
272
265
273
266
<programlisting ><![CDATA[ <hibernate-mapping>
@@ -305,16 +298,13 @@ namespace Eg
305
298
</hibernate-mapping>]]> </programlisting >
306
299
307
300
<para >
308
-
309
301
Note that even though associations are declared using target class names,
310
302
the target type of an associations may also be a dynamic entity instead
311
303
of a POCO.
312
304
</para >
313
305
314
306
<para >
315
- After setting the default entity mode to <literal >dynamic-map</literal >
316
- for the <literal >ISessionFactory</literal >, we can at runtime work with
317
- <literal >Dictionaries</literal > of <literal >Dictionaries</literal >:
307
+ At runtime we can work with <literal >Dictionaries</literal > of <literal >Dictionaries</literal >:
318
308
</para >
319
309
320
310
<programlisting ><![CDATA[ using(ISession s = OpenSession())
0 commit comments