-->
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.  [ 4 posts ] 
Author Message
 Post subject: Using Oracle Trigger for generating primary key BeforeInsert
PostPosted: Fri Jul 11, 2008 5:41 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.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 12, 2008 8:08 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
does not sound like a tools related question ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 14, 2008 12:09 pm 
Newbie

Joined: Tue Nov 27, 2007 7:11 pm
Posts: 9
In such scenario i would like to know

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


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 14, 2008 12:23 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
still does not sound like a tool related problem...maybe asking in the main forum would help ?

_________________
Max
Don't forget to rate


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 4 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.