Open uklance opened 8 years ago
Currently, the generated key logic is a bit silly. It simply states to use Statement.RETURN_GENERATED_KEYS and can only return a single generated value. Ie it currently uses:
Statement.RETURN_GENERATED_KEYS
Connection.prepareStatement(String sql, int autoGeneratedKeys)
This should be improved and should use either
prepareStatement(String sql, int[] columnIndexes)
or
prepareStatement(String sql, String[] columnNames)
Then we can populate more than one database generated value per insert
See DefaultInsertHandler JdbcEntityPersistence
Currently, the generated key logic is a bit silly. It simply states to use
Statement.RETURN_GENERATED_KEYS
and can only return a single generated value. Ie it currently uses:This should be improved and should use either
or
Then we can populate more than one database generated value per insert
See DefaultInsertHandler JdbcEntityPersistence