Skip to content

Generated keys are retrieved even if the primary key value is defined #933

Closed
@rtlusty

Description

@rtlusty

Method DefaultDataAccessStrategy.insert(...) invokes method JdbcOperations.update(PreparedStatementCreator, KeyHolder) even in case, that the primary key is defined by the user. This creates probably some overhead and also fails on JDBC drivers, which don't support retrieving of generated keys.

The method should rather invoke JdbcOperations.update(PreparedStatementCreator) in case, that the primary key value is already defined in time of INSERT.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions