docd new datetime stuff

git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@6552 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Gavin King 2005-04-27 03:33:13 +00:00
parent cc7621952a
commit f814aec3d2
1 changed files with 11 additions and 3 deletions

View File

@ -528,6 +528,13 @@ where log.item.class = 'Payment' and log.item.id = payment.id]]></programlisting
<literal>current_timestamp()</literal>
</para>
</listitem>
<listitem>
<para>
<literal>second(...)</literal>, <literal>minute(...)</literal>,
<literal>hour(...)</literal>, <literal>day(...)</literal>,
<literal>month(...)</literal>, <literal>year(...)</literal>,
</para>
</listitem>
<listitem>
<para>
Any function or operator defined by EJB-QL 3.0: <literal>substring(), trim(),
@ -542,9 +549,10 @@ where log.item.class = 'Payment' and log.item.id = payment.id]]></programlisting
</listitem>
<listitem>
<para>
<literal>cast(... as ...)</literal> where the second argument is the name of
a Hibernate type, if ANSI <literal>cast()</literal> is supported by the underlying
database
<literal>cast(... as ...)</literal>, where the second argument is the name of
a Hibernate type, and <literal>extract(... from ...)</literal> if ANSI
<literal>cast()</literal> and <literal>extract()</literal> is supported by
the underlying database
</para>
</listitem>
<listitem>