-->
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: Using Native Generator
PostPosted: Mon Jan 15, 2007 11:32 am 
Newbie

Joined: Mon Jan 15, 2007 11:18 am
Posts: 1
I am unable to find any documentation for using the native generator for IDs. I need to be able to switch between Oracle and Sqlite and Oracle. Oracle uses a sequence generator. The documentation says hibernate will autmatically pick whichever strategy the underlying db supports. But it looks like we at least have to pass in the seqence name for oracle . This suggests there is other configuration needed to acheive this. I tried
Code:
<generator class="native">
        <param name="sequence">SEQ_NAME</param>
      </generator>

it works for oracle but not for sqllite. It complains, sqllite doesnt know of any sequences ! . Any help or pointers would be much appreciated.

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.