Search code examples
hql

How does HQL's current_timestamp() work?


Does the hql function current_timestamp() use the time from the server the java code is running on or the server the database is running on?


Solution

  • HQL queries are translated to SQL queries, and SQL queries are executed by the database. So the current_timestamp() equivalent SQL function will be executed on your database server.