-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: No Dialect mapping for JDBC type: -101
PostPosted: Tue Apr 08, 2014 2:50 am 
Newbie

Joined: Tue Apr 08, 2014 2:42 am
Posts: 1
I am firing following query

Transaction tx3 = session.beginTransaction();
Query query3 = session.createSQLQuery("SELECT SYSTIMESTAMP FROM DUAL");
Object x = (Object)query3.uniqueResult(); //line 3
System.out.println(x);
tx3.commit();

while executing line 3 i am getting following error

exceptiontsorg.hibernate.MappingException: No Dialect mapping for JDBC type: -101

I am getting same exception with the following query also

/* String dateQuery = "select to_timestamp_tz( to_char(TO_DATE('19700101000000','YYYYMMDDHH24MISS') ,'mm/ddyyyy hh24:mi:ss'),'mm/ddyyyy hh24:mi:ss TZH:TZM')"+
"at time zone 'america/los_angeles' from dual";
Query dateQueryTZ = session.createSQLQuery(dateQuery);*/

Can any one tell me how to fix this and get the timestamp value.
Please tell me if any alternative are there for the above query.

Thanks in advance
Partha


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.