File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change 225
225
notion of composite key equality.
226
226
</para >
227
227
</listitem >
228
+ <listitem >
229
+ <para >
230
+ It should re-implement <literal >ToString()</literal > if you consider
231
+ using the second level cache. See <xref linkend =" NHibernate.Caches-howto" />.
232
+ </para >
233
+ </listitem >
228
234
</itemizedlist >
229
235
230
236
<para >
Original file line number Diff line number Diff line change 166
166
transactions. Interacting with the data store without an explicit transaction is discouraged, and will
167
167
not allow the second level cache to work as intended.
168
168
</para >
169
+ <para >
170
+ To avoid issues with composite ids and some cache providers, <literal >ToString()</literal > needs to
171
+ be overridden on composite id classes. It should yield an unique string representing the id. If the
172
+ composite id is mapped as a component, overriding the component <literal >ToString()</literal >
173
+ is enough. See <xref linkend =" components-compositeid" />.
174
+ </para >
169
175
</formalpara >
170
176
<para >
171
177
See also <xref linkend =" performance-cache" />.
You can’t perform that action at this time.
0 commit comments