Annotation Type GeneratesID
@Retention(SOURCE) @Target(FIELD) @Documented public @interface GeneratesID
Used to document that some DML is expected to generate an ID.
NB: Do not use with SQLite from 3.43 onwards. The
Xerial driver removed support for
Statement.getGeneratedKeys()
in version 3.43.0; use a
RETURNING
clause instead, and handle via
PreparedStatement.executeQuery()
instead of
PreparedStatement.executeUpdate()
. This limitation only applies to
that driver.
- Author:
- Donal Fellows