-->
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: RAW16 and Uniqueidentifier applicable mapping. HOW??
PostPosted: Mon Oct 22, 2007 8:42 am 
Newbie

Joined: Fri Oct 19, 2007 3:47 am
Posts: 3
Location: Moscow
Hi, All! At first, excuse me for my baaaad english. :(

I've got the following problem:

There is two almost similar db'ses: first - Oracle DB, second - MS SQL DB.
Most persistent classes, of course, has public virtual string Id.
Tables in MS SQL has uniqueidentifier OBJECTID
Tables in Oracle has NOW raw16 (at the beginning of the DB developing there was some type, compliant with system.string class properties, and all runned well) OBJECTID, corresponding to Id in persistent class.


Now I must do something to make new Oracle DB and MS SQL db both work with some kind of mapping.

Now, when I'm trying to fill type with such a property from Oracle I'm gettin', f. eX., about 1500 entities with "System.Byte[]" in the place of Id value.

HHAAAAALLPP!!!

PS: I'm new in NHiber, and never worked with Oracle, so links on any applicable, maybe wide and describing related context materials would be pretty useful.


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.