Browse Source

+ fix missing tag

git-svn-id: https://src.springframework.org/svn/spring-framework/trunk@4069 50f2f4bb-b051-0410-bef5-90022cba6387
pull/1/merge
Costin Leau 15 years ago
parent
commit
401cc86d90
  1. 1
      spring-framework-reference/src/cache.xml

1
spring-framework-reference/src/cache.xml

@ -92,6 +92,7 @@ public Book findBook(ISBN isbn) {...}]]></programlisting> @@ -92,6 +92,7 @@ public Book findBook(ISBN isbn) {...}]]></programlisting>
<listitem>If only one param is given, return that instance.</listitem>
<listitem>If more the one param is given, return a key computed from the hashes of all parameters.</listitem>
</itemizedlist>
<para>
This approach works well for objects with <emphasis>natural keys</emphasis> as long as the <literal>hashCode()</literal> reflects that. If that is not the case then
for distributed or persistent environments, the strategy needs to be changed as the objects hashCode is not preserved.
In fact, depending on the JVM implementation or running conditions, the same hashCode can be reused for different objects, in the same VM instance.</para>

Loading…
Cancel
Save