[jboss-user] [EJB 3.0] - Re: Use oracle to generate the id with the orcle seqence tab
do-not-reply at jboss.com
Tue Sep 18 08:09:30 EDT 2007
I think you mean
yes, I try this. the problem is that. we are using the oracle db for creating the next pk (a old infrastructur). so when I do "em.persist(table)" the id that will be insert is i+1. because hibernate is generating a pk and when I do persist oracle is generating a pk, too.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4085445#4085445
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4085445
More information about the jboss-user