Say I have an object with an automatically generated primary key. Now, if I try to save an object with the values of all other fields that may not be unique. The object is automatically populated with the identifier of the row inserted. How did he get hold of this primary key value?
EDIT:
If the identifier column is specified in the primary key column, the value of which is completely determined by the database. Thus, it executes the insert statement without this column value, and db decides which value to use, whether it binds its solution (I don't think so)
source
share