Open
Description
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:
- demo.zip (63.32 kB)