reset password
Author Message
ggsisodi
Posts: 2
Posted 13:40 Feb 08, 2015 |

Hi Professor,

When I am adding my plan to DB, it gets over written with existing id = 1.I have created hibernate_sequence with minvalue 100 and @GeneratedValue for Id in the model class,But still it is overwriting.I have attached my hibernate_sequence property screenshot for reference.

May I know to tackle this issue?

Thanks

Attachments:
cysun
Posts: 2935
Posted 14:50 Feb 08, 2015 |

I don't know what you meant by "overwriting". If it means a newly created object getting an ID 1 and causing a primary key conflict with an existing object, it's likely because of some bug in your code rather than the sequence.

ggsisodi
Posts: 2
Posted 16:20 Feb 08, 2015 |

Thank you Professor! It was coding bug.