Hi Everyone,
I am currently working on a code in hibernate. you know you have the id field in hibernate mapping files,
I understand that the id is mandatory in hibernate and is used to describe the primary key of the table. But my table does not have a primary key since the values of the column can repeat themselves without restriction. But since it is mandatory to define a primary key in hibernate it conflicts with my db and throws an exception when i try to insert duplicate values, like the NonUniqueObjectException Exception.
So is it really "mandatory" to define id in hibernate? Or is it possible to do without it? Or is there another way to resolve this issue....
(am i even making any sense?)
Do help!
Thank you
Have a nice day