Hibernate version: 3
Mapping documents: hbm files
Name and version of the database you are using: DB2 version 7 on os/390
I am trying to execute the following query
Code:
SELECT current timestamp FROM SYSIBM.SYSDUMMY1
When I try to run this in a session.createQuery I get
Code:
*** ERROR: SYSIBM.SYSDUMMY1 is not mapped.
I read that I probably need to do a stored procedure execution here
http://www.hibernate.org/hib_docs/v3/re ... /#sp_query
But this sqlQuery returns a class and I need a timestamp returned which is basically the timestamp from the database I am operating with.
How can I get this done? Any clues?
Thanks.
T.