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: Using Oracle Trigger for generating primary key BeforeInsert
PostPosted: Mon Jul 14, 2008 4:20 pm 
Newbie

Joined: Tue Nov 27, 2007 7:11 pm
Posts: 9
I want to use oracle trigger for generating the primary key before inserting data to a table.

eg: TRIGGER_BEFORE_INSERT and that trigger uses an oracle sequence to generate primary key

what should i use for generator class in my hbm file.

I tried using generator class = select but that doesn't seem to work.

Could some one please help me with this.

Let me know if this is not the right place to post.


Top
 Profile  
 
 Post subject: Re: Using Oracle Trigger for generating primary key BeforeIn
PostPosted: Thu Sep 04, 2008 9:26 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.