Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [eclipselink-users] getting a timestamp value back from a nativeQuery

You could also use "select sysdate from dual" which will return
java.sql.Timestamp.


David Parker-13 wrote:
> 
> I tried 1.1, and now the code
> 
> Query query = getEntityManager().createNativeQuery(GET_DATE);
> Object result = query.getSingleResult();
> 
> yields a result Object that is a oracle.sql.TIMESTAMPTZ, which isn't  
> much help.
> 
> 


-----
---
http://wiki.eclipse.org/User:James.sutherland.oracle.com James Sutherland 
http://www.eclipse.org/eclipselink/
 EclipseLink ,  http://www.oracle.com/technology/products/ias/toplink/
TopLink 
Wiki:  http://wiki.eclipse.org/EclipseLink EclipseLink , 
http://wiki.oracle.com/page/TopLink TopLink 
Forums:  http://forums.oracle.com/forums/forum.jspa?forumID=48 TopLink , 
http://www.nabble.com/EclipseLink-f26430.html EclipseLink 
Book:  http://en.wikibooks.org/wiki/Java_Persistence Java Persistence 
-- 
View this message in context: http://www.nabble.com/getting-a-timestamp-value-back-from-a-nativeQuery-tp22684474p22701763.html
Sent from the EclipseLink - Users mailing list archive at Nabble.com.



Back to the top