-->
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: Primary key is 8byte binary
PostPosted: Tue Aug 25, 2009 11:39 am 
Newbie

Joined: Tue Aug 25, 2009 8:30 am
Posts: 2
I am using nhibernate...but probably similiar solution(if there is one) so i reposted here.

I am trying to map a legacy table that has a key of 8 byte binary using the following mapping and nhibernate throws a "Illegal use of an array as an identifier"...any ideas? I was thinking tricking it with GUID but that is a 16byte binary.

<class name="JefbaseHIB.BusinessObjects.Company, JefbaseHIB" table="dbo.Company" lazy="true">
<id name="Id" column="Company_Id">
<generator class="assigned" />
</id>
...

Thanks....


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.