Win a copy of JDBC Workbook this week in the JDBC and Relational Databases forum
or A Day in Code in the A Day in Code forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
  • Piet Souris
  • salvin francis
  • fred rosenberger

HSQLDB Indexing Error?

Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've set up some unit tests using HSQLDB. The unit test adds two entries to the DB. I would expect the entries id numbers to be 1 & 2 but they are 2 & 3! Why? Here's the Spring Bean code:

Here's the object I'm persisting:

Here's the relevant unit test code:

Find by primary key using 1 returns nothing; 2 returns user1 and 3 returns user2.

Can anyone tell me what I'm doing wrong or where I'm thinking wrong?

Let's go to the waterfront with this tiny ad:
Devious Experiments for a Truly Passive Greenhouse!
    Bookmark Topic Watch Topic
  • New Topic