-->
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: native identity value already in use
PostPosted: Sat Dec 06, 2003 1:13 pm 
Newbie

Joined: Sat Dec 06, 2003 1:10 pm
Posts: 1
problem: native id already in use.

scenario: table a (id,col1,col2,col3) id is identity column in tables a,b
table b(id,col1,col2,a.id) a.id refers to the id column in table a
where: i am performing the persistence in a stateless CMP EJB
sequence: persist table a
persist table b

upon persistence of table a lets day @@identity is 1
upon peristence of table b the @@identity is returing
1. If i have two records going into table b for the first time
record 1 is ok but for the second record i am getting the error.


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.