Skip to content

Proper Conversions [DATAJDBC-104] #339

@spring-projects-issues

Description

@spring-projects-issues

Jens Schauder opened DATAJDBC-104 and commented

  • When the Id is of type int but the database column type results in a Long assignment of the id fails (change JdbcRepositoryIdGenerationIntegrationTests.PrimitiveIdEntity.id to int for a test case)

  • Ids of new entities must be set to null instead of 0 (hacked in SimpleJdbcRepository.doInsert)

  • I expect more conversions to be needed for Boolean to Char or Number(1) columns and possibly other combinations


Referenced from: pull request #9

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions