[odb-users] object already persistent
boris at codesynthesis.com
Tue Feb 22 03:10:50 EST 2011
Bright Dadson <losintikfos at yahoo.co.uk> writes:
> I have then amended the code to change the name of the person which i
> expect to be a new record.
It is a new object only if it has a new object id.
> but when i execute the application i get object already persistent
> printed. I added this #pragma db id auto to my persistent class
> generation therefore expect records to be inserted without any issue
> and hence new id automatically issued by MySQL.
If you added the db auto pragma, you need to also re-create the database
schema with the generated .sql file.
More information about the odb-users