I have spring+hibernate project, I want to write Unit test case for DAO layers, Currently I am using HSqldb's in memory DB to test it. (I referred this )
In project, IDs are provided by sequences, As I am using in-memory DB, during test sequence are not presents so it was falling, For workaround, I have created different set of hbm files without sequence(and put them test's resource folder). Is there any better way to handle this, as keeping duplicate hbm file does look good to me. Any suggestion would be appreciated