Skip to content

Adapt to changes to support immutable entities [DATAJDBC-232] #457

@spring-projects-issues

Description

@spring-projects-issues

Oliver Drotbohm opened DATAJDBC-232 and commented

It looks like we need significant changes to support immutable entities as the APIs starting in SimpleJdbcRepository.save(…) do not actually return the instance that has been manipulated in downstream operations, i.e. they assume the instance handed down can be mutated.

From a brief inspection it looks like we need AggregateChange to keep a PersistentPropertyAccessor around instead of the actual instance. That would allow all downstream code to manipulate the bean via PersistentPropertyAccessor and the orchestrating code on top to be able to call ….getBean() once all operations have been finished


Issue Links:

  • DATAJDBC-233 API changes for future proper support for immutable entities

Referenced from: commits 95d3163

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions