Skip to Main Content

Integration

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JPA / Method for something like "select sysdate from dual"

59288Jul 19 2007 — edited Jul 20 2007
Hello!

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.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 17 2007
Added on Jul 19 2007
2 comments
14,564 views