You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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:
Connection.prepareStatement(String sql, int autoGeneratedKeys)
The text was updated successfully, but these errors were encountered:
uklance
changed the title
Make getGeneratedKey smarter
Specify explicit columns for generated keys. Allow multiple columns to be auto generated by database
Mar 30, 2016
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
The text was updated successfully, but these errors were encountered: