-->
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.  [ 4 posts ] 
Author Message
 Post subject: Urgent help required.
PostPosted: Wed Jan 03, 2007 3:58 am 
Newbie

Joined: Thu Dec 07, 2006 4:04 am
Posts: 3
Location: Mumbai
Hi,
I have Oracle driver 8.1.7 installed on my machine.My database server is Oracle 10g. I am using an Nhibernate query which is like:
"select p.objectID, p.TimeIn from PrimeObject as p" . Here TimeIn is a property of PrimeObject class which maps to Time_In column of Database which is of type TimeStamp.

Since Oracle 8.1.7 doesnt support TimeStamp dataType, the HQL is failing. Can something be done in Hibernate mapping file to take care of this.

Pls suggest..

-Shirish


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 03, 2007 5:19 am 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
Please note I'm a Hibernate user, not NHibernate, but some concepts are similar, so let's try :-).

Maybe try writing a custom UserType? Then add type="yourUserType" to the corresponding property.

But why can't you just update the driver and maybe also the dialect for Oracle 10G?

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 03, 2007 5:26 am 
Newbie

Joined: Thu Dec 07, 2006 4:04 am
Posts: 3
Location: Mumbai
Thnks Baptiste..
However I cant update driver to Oracle 10G, since this is one of the constraint for us.

Can u elaborate on using custom datatypes and how can I use it to get rid of timestamp datatype in Oracle 10g which is creating a problem.

Awaiting reply.

Thnks again..

- Shirish


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jan 03, 2007 5:41 am 
Expert
Expert

Joined: Tue Dec 28, 2004 7:02 am
Posts: 573
Location: Toulouse, France
You've got some examples for NHibernate linked from the Hibernate site:
http://www.hibernate.org/100.html

More can be found here: http://www.hibernate.org/37.html#A7

HTH

_________________
Baptiste
PS : please don't forget to give credits below if you found this answer useful :)


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

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.