-->
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: Datatype for id, version and references
PostPosted: Thu May 26, 2011 11:28 am 
Newbie

Joined: Thu May 19, 2011 5:27 am
Posts: 4
Hi All

I have the following question.
If I define an ID and a Version for an oracle database, NHibernate creates columns with datatype NUMBER(10,0).
What I want is, that the columns have the datatype NUMBER(6,0).

However, this can be done with the key 'CustomSqlType = NUMBER(6)'.

But then also I have references, which point to the other tables IDs. Unfortunately the references do not have a key 'CustomSqlType'.

How can I set the sql datatype for references ?
Or
Is there any way to set the default sql datatype for IDs and Version, which also apply to references, say I want to define the default datatype NUMBER(6), which is then used if I defined a reference?

Thank you
Thomas


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.