Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How does HQL's current_timestamp() work?

Tags:

hql

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?

like image 358
matt.early Avatar asked Nov 24 '25 05:11

matt.early


1 Answers

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.

like image 88
JB Nizet Avatar answered Nov 28 '25 17:11

JB Nizet



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!