As we know if we use
identity
ID Generator in Hibernate and if we dont set the primary key value to the entity object then database will insert the primary key value.But If we are using
identity
ID Generator and still we set the primary key value to the entity class object likeentityClassObject.setPrimaryKeyNo(10)
then which primary key will be stored in the database?
- Database Provided Primary key
- Ours provided primary key
Can someone prove it ?