Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » EclipseLink » TIMESTAMP calculations
TIMESTAMP calculations [message #380560] Fri, 29 August 2008 14:10
Markus KARG is currently offline Markus KARGFriend
Messages: 44
Registered: July 2009
Member
I noticed that in JPA 1.0 (TopLink) it is possible to do "SELECT x FROM X x
WHERE x.y BETWEEN CURRENT_TIMESTAMP-1 AND CURRENT_TIMESTAMP" what
effectively returns all X instances from now to
one-day-ago-at-the-same-time. That is great and exactly what I need, but in
fact I didn't find anything in the JPA 1.0 specification that this actually
is a mandatory feature of JPA 1.0 and is not just working by incident on
TopLink.

Can you confirm that this will work on ANY JPA 1.0 compliant providers? Or
is that a TopLink / EclipseLink feature?

Thanks!
Markus
Previous Topic:Order of mapping resolution
Next Topic:Table Sequence
Goto Forum:
  


Current Time: Fri Apr 19 22:17:32 GMT 2024

Powered by FUDForum. Page generated in 0.02400 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top