Hibernate Books

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: Nhibernate can't see an existing column in database
PostPosted: Mon Feb 06, 2012 10:39 am 
Newbie

Joined: Mon Feb 06, 2012 10:34 am
Posts: 1
Hi.

I am working on a table which had no ID field with primary index.
I create one, called "cle", and map it that way:

<id name="Id" column="cle">
<generator class="identity"/>
</id>

However when calling FindById() method, SQL fails telling me that no column name "cle" exist. When I manually query my database, this key actually exist. Why Nhibernate can't see it?


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.