-->
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: How to save Guid as the primeKey to Oracle database?
PostPosted: Wed Feb 28, 2007 3:28 am 
Newbie

Joined: Fri Jan 26, 2007 1:42 am
Posts: 1
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
I use the Nhibernate 1.0.3

I have a project which has been finished and use the SQL2000 as it's main database. In this project we choose "Guid" as the type of entities' Id
, such as:
<id name="id" column="assetShadowId" type="Guid" >
<generator class="guid" />
</id>.
So, in database SQL2003 the type of prime key is uniqueidentifier.
Everything is ok.
But, now, we need to move the project from the SQL2000 to Oracle.
Because Orcale10g does not support the uuid or guid.So in orcale's table the prime key is vchar2(32). However, we find that it's impossible to use
the "Guid" type anymore, for NHibernate oracle dialect can not convert guid to string.Could someone provide some advices to solve this problems? Otherwise, we have to change the generator of id.

Read this: http://hibernate.org/42.html


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.