From f814aec3d2a7ae1c09c8728cf0f1a77d0d1b537b Mon Sep 17 00:00:00 2001 From: Gavin King Date: Wed, 27 Apr 2005 03:33:13 +0000 Subject: [PATCH] docd new datetime stuff git-svn-id: https://svn.jboss.org/repos/hibernate/trunk/Hibernate3/doc@6552 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- reference/en/modules/query_hql.xml | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/reference/en/modules/query_hql.xml b/reference/en/modules/query_hql.xml index 41259bcf1f..72fbef7b8e 100644 --- a/reference/en/modules/query_hql.xml +++ b/reference/en/modules/query_hql.xml @@ -528,6 +528,13 @@ where log.item.class = 'Payment' and log.item.id = payment.id]]>current_timestamp() + + + second(...), minute(...), + hour(...), day(...), + month(...), year(...), + + Any function or operator defined by EJB-QL 3.0: substring(), trim(), @@ -542,9 +549,10 @@ where log.item.class = 'Payment' and log.item.id = payment.id]]> - cast(... as ...) where the second argument is the name of - a Hibernate type, if ANSI cast() is supported by the underlying - database + cast(... as ...), where the second argument is the name of + a Hibernate type, and extract(... from ...) if ANSI + cast() and extract() is supported by + the underlying database