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: Trigger instead of hibernate_sequence in Oracle
PostPosted: Wed Feb 20, 2008 1:12 pm 
Newbie

Joined: Mon Dec 11, 2006 5:18 am
Posts: 9
Hi all,

my web application use SqlServer2005 and Oracle9i as RDBMS
In SqlServer the PK of tables use identity fields.
In Oracle the PK of tables use triggers to increment their values.

The mapping is the follow:

... @GeneratedValue(strategy=GenerationType.AUTO) ...

In SqlServer is all right, but in oracle Hibernate try to use a default "hibernate_sequence". I don't want use it, because I use trigger.

Is there a possibility to tell to Hibernate to not use sequence ???

Best regards
alex


Top
 Profile  
 
 Post subject: Re: Trigger instead of hibernate_sequence in Oracle
PostPosted: Thu Sep 04, 2008 9:39 am 
Beginner
Beginner

Joined: Thu Dec 23, 2004 5:24 am
Posts: 40
Location: Luxembourg
http://forum.hibernate.org/viewtopic.php?t=973262


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.