Skip to content

JpaMetamodelMappingContext should use PersistentPropertyAccessorFactory consistent with JPA #1974

Open
@spring-projects-issues

Description

@spring-projects-issues

alienisty opened DATAJPA-1675 and commented

According to the documentation of Spring Data Commons chapter 3:

Note, that this section only applies to Spring Data modules that do not use the object mapping of the underlying data store (like JPA). 

My reading is that everything that is described in that chapter should not apply to Spring Data JPA.

Now, JPA is happy to have final identifier fileds, but AbstractMappingContext installs either ClassGeneratingPropertyAccessorFactory or BeanWrapperPropertyAccessorFactory which both don't allow setting a final field while JPA does.

I think that either the documentation should be changed or a JPA compatible PersistentPropertyAccessorFactory should be used


Affects: 2.2.4 (Moore SR4)

Attachments:

Metadata

Metadata

Labels

for: team-attentionAn issue we need to discuss as a team to make progressin: coreIssues in core supporttype: bugA general bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions