added imm_types

git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@7234 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Gavin King 2005-06-20 02:34:01 +00:00
parent a4adfd9444
commit 6d72359612

View File

@ -2676,7 +2676,7 @@
</sect2>
<sect2 id="mapping-types-basictypes" revision="2">
<sect2 id="mapping-types-basictypes" revision="3">
<title>Basic value types</title>
<para>
@ -2797,6 +2797,23 @@
</para>
</listitem>
</varlistentry>
<varlistentry>
<term>
<literal>imm_date, imm_time, imm_timestamp, imm_calendar, imm_calendar_date,
imm_serializable, imm_binary</literal>
</term>
<listitem>
<para>
Type mappings for what are usually considered mutable Java types, where
Hibernate makes certain optimizations appropriate only for immutable
Java types, and the application treats the object as immutable. For
example, you should not call <literal>Date.setTime()</literal> for an
instance mapped as <literal>imm_timestamp</literal>. To change the
value of the property, and have that change made persistent, the
application must assign a new (nonidentical) object to the property.
</para>
</listitem>
</varlistentry>
</variablelist>
</para>