-->
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: Auto increment in Stored Procedure
PostPosted: Mon Oct 06, 2008 10:26 am 
Newbie

Joined: Fri Sep 26, 2008 8:48 am
Posts: 2
Hi,
the user in my NHibernate connection_string has only access to
exec stored procedures.
I have a table where I set:

Code:
<id name="Id" column="Id" type="int">
      <generator class="increment"/>
    </id> 


The problem is I get this error:

Quote:
NHibernate.Exceptions.GenericADOException: could not fetch initial value for increment generator[SQL: SQL not available]


How can I manage that NHibernate gets the initial value for the Insert-Stored Procedure.

Thanx and regardes
Stephan


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.