Hi all,
We are developing a multi-client (/server) application.
For some reasons we need to have the current date&time on the client side, unfortenately client machines may not be synchronized. As a consequence we are using the database server clock.
Before starting with hibernate, we used to issue queries like:
(Oracle)
Code:
select sysdate from dual
(DB2) Code:
select current timestamp from one_of_our_table
Like you know it's database dependant, and then I would like to know what is the most elegant way of implementing this using hibernate.
I know that in some cases, hibernate isn't the right answer and the direct jdbc is the best... but what is your opinion?
I forget to say that we don't store this current date&time (at least not always), but use it for processing on the client machine.
Thanks.
Johann