-->
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: identifier generator with firebird
PostPosted: Fri Dec 17, 2004 5:42 pm 
Newbie

Joined: Wed Oct 13, 2004 11:23 am
Posts: 14
I have generator named 'Hibernate_Sequence' in firebird. In all the mapping files I have generator defined as

<id name="id" type="int" column="id" unsaved-value="0">
<generator class="native"/>
</id>

I know using this configuration every row I insert into any table .. I will have id as number from 'Hibernate_Sequence' plus 1.

What I want to have is use seperate generator for each table. How to do it and what is mapping file ?

I aslo used

<generator class="native">
<param name="GEN_MAILING_ID">GEN_MAILING_ID</param>
</generator>

But still new entry gets id from Hibernate_Sequence.

Any directions/help appreciated.
--Anand




Hibernate version:2.1.7

Mapping documents:N/A

Code between sessionFactory.openSession() and session.close():

Full stack trace of any exception that occurs:

Name and version of the database you are using:Firebird1.5

The generated SQL (show_sql=true):

Debug level Hibernate log excerpt:


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.