Back Forum Reply New

id increased by 2 in ROO 1.1.1 ??

I created a new project using ROO 1.1.1, and use the hibernate, and found the id increased by 2, from 1 to 3 to 5...

Is this a bug? Or my env issue? Thanks.

Could you post the script that you used, so that I maybe able to reproduce this issue

or add some more detail

thanks

simon

There might something local...

I tried here with a fresh web app and works fine for me.

Thx
jD

You haven't said what database you're using, but be aware that with Oracle, Hibernate uses a single sequence to generate the IDs for all tables (as opposed to one sequence per table). So the IDs within a given table will not necessarily be consecutive, depending on whether any other tables were inserted into in the meantime.

I re-setup the env and it works now, thanks all!
¥
Back Forum Reply New