• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

HSQLDB Indexing Error?

 
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?

Thanks,
Bob
 
reply
    Bookmark Topic Watch Topic
  • New Topic