When setting auto-enter values for database sequences they will only stick for the session you have Developer open.
During this session you can create records without problems.
But after closing and re-launching Developer the auto-enter values of my PK columns are set to database managed values. A setting that is not compatible with the used RDBMS and/or JDBC driver.
For developers like me who use only database sequences this is a showstopper.
Servoy Developer
Version 3.1.2-build 406
Java version 1.5.0_06-64 (Mac OS X)
RDBMS: PostgreSQL 8.2.3
JDBC driver: postgresql-8.2-504.jdbc3.jar
We created a new table on a Postgres db using Developer, pk auto-enter = ‘Sequence, dbseq’, created the sequence in the db backend and were able to create records.
After restart of Developer, the settings were unchanged, as expected.
A similar test using Sybase and auto-enter db-identity also works as expected.
Yeah, all my PK columns have a primary key constraint.
I use DbWrench to design/edit my datamodels. It takes care of all that.
In the mean time I have done some more testing.
I see the same result when I do a clean install of 3.1.2 and use Sybase as repository server instead of PostgreSQL…so something very strange is going on.
Nothing in the logs either.
Support got now my JDBC driver, solution and datamodel. We’ll see what comes out of this.
We still have not been able to reproduce the problem.
The solution was imported in postgres, created the tables.
The pk auto-enter values can be changed and stick after restart of developer.
We have been able to locate the problem.
There is a small problem in the column-info editor interface.
When you use the ‘Properties’ button, changes are not always saved to the database.
The workaround is simple: do not use the button, click on the Properties-cell of the column you want to modify. The same dialog appears and changes are saved.