Uploaded image for project: 'Spring Data JPA'
  1. Spring Data JPA
  2. DATAJPA-767

Interoperation between @Version and entity state detection strategies is not documented

    Details

      Description

      The documentation as linked above does not describe, that if an entity has a field annotated with @Version, the class org.springframework.data.jpa.repository.support.JpaMetamodelEntityInformation checks if version is null to determine if the entity is new.

      See https://github.com/spring-projects/spring-data-jpa/blob/67b93c2073e0a0eb204fecb0e9df0ed5e24456c1/src/main/java/org/springframework/data/jpa/repository/support/JpaMetamodelEntityInformation.java

        Attachments

          Activity

            People

            • Assignee:
              schauder Jens Schauder
              Reporter:
              stefan.kuehnel Stefan Kühnel
              Last updater:
              Christoph Strobl
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: