Read the generated key from the parameter after an insert
ProprietaryWhere the result of an iBatis 2 insert is used, which was the generated key, reads the key from the parameter's keyProperty (as the statement's <selectKey> declares it) after the insert, since MyBatis 3's insert returns the number of rows instead. A statement without <selectKey> returned null in iBatis 2, and still yields null.
io. moderne. mybatis. ReadGeneratedKeyAfterInsertmod run . --recipe= io. moderne. mybatis. ReadGeneratedKeyAfterInsertInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.