JPA / Method for something like "select sysdate from dual"
59288Jul 19 2007 — edited Jul 20 2007Hello!
Using Toplink 10.1.2 I would get the database time with "getTimestampQuery()".
clientSession.getLogin().getPlatform().getTimestampQuery();
JPQL, Java Persistence Query Language supports the funtion expressions CURRENT_TIME, CURRENT_DATE, CURRENT_TIMESTAMP.
I would like to know the best way to retrieve only the database time using JPA (like "select sysdate from dual").
Thank you!
Harald.