-->
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: Auto generation strategy for IDs in AS7 differs from AS6
PostPosted: Tue Aug 09, 2011 3:55 am 
Newbie

Joined: Mon Sep 05, 2005 2:28 am
Posts: 6
The sequence generation of IDs for @Id @GeneratedValue(strategy = GenerationType.AUTO) is different in AS7 than in AS6 when using H2 embedded driver and the standard datasource ExampleDS.

I have been using H2 in AS6 for while and all my test cases fails because the IDs are sequenced across tables and not per table. So when an ID is asserted for in my test case, it fails.

I know that the AUTO id generation strategy is up to the capability of the driver, however I find it dubious that H2 driver is not capable of generating an ID per table. This worked fine with H2 driver in AS6. Another consequence of this, I cannot run the same test cases using MySQL since the id sequence generation differs.

This issue has also been posted on the AS7 User Forum and I hope the Hibernate team would be able to provide a comment/solution to this problem.

http://community.jboss.org/thread/170623?tstart=0

Ove


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.