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.  [ 2 posts ] 
Author Message
 Post subject: Problem porting hibernate impl from Oracle to SQL Server
PostPosted: Mon Aug 15, 2005 2:20 pm 
Beginner
Beginner

Joined: Thu Jun 09, 2005 2:33 pm
Posts: 30
I'm experiencing problems porting a hibernate dao implementation from Oracle to SQL Server. In many of the mapping files I have the generator for an id declared as "native". Some of them have a sequence param for Oracle. Shouldn't SQL Server ignore the sequence param and use it's native auto increment? It's failing because Hibernate is building sql referencing "dual" to try to get a sequence value. I changed the dialect to use SQLServerDialect also. Please advice.


Top
 Profile  
 
 Post subject:
PostPosted: Mon Aug 15, 2005 2:27 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
I'm sure you have not correctly set the dialect.


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

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.