Uploaded image for project: 'OpenJPA'
  1. OpenJPA
  2. OPENJPA-275

Bulk updates: version information should be automatically maintained when the query does not

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 0.9.0, 0.9.6, 0.9.7
    • 1.0.0
    • jdbc, query
    • None

    Description

      According to the JPA specification, the user must manually maintain the @Version column in objects that are updated via a bulk update. This is a potential bug in the waiting, and is impossible to do correctly for time-based version fields.

      OpenJPA should automatically increment version counters when a bulk update is issued that does not maintain version counters itself.

      Of course, this will not change the fact that bulk updates do not do any optimistic lock checks; that behavior is inherent to the nature of bulk updates in the JPA specification, since they are evaluated entirely against the database.

      Attachments

        Activity

          People

            pcl Patrick Linskey
            pcl Patrick Linskey
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: