Skip to content

Cannot set createdDate and createdAt on primitive @Id [DATAJDBC-216] #442

@spring-projects-issues

Description

@spring-projects-issues

Kazuki Shimizu opened DATAJDBC-216 and commented

In current implementation, the auditing feature work fine if @Id property is wrapper type(e.g. Integer, Long). But it does not work fine if @Id property is primitive type (e.g. int, long ).

I think it should be use the JdbcPersistentEntityInformation#isNew(T) for judging whether new object or not.

 


Affects: 1.0 M3 (Lovelace)

Referenced from: pull request #71, and commits fe98964, 0c863eb

Metadata

Metadata

Assignees

Labels

in: coreIssues in core supporttype: bugA general bug

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions