Uploaded image for project: 'Hibernate ORM'
  1. Hibernate ORM
  2. HHH-10822

Wrong signature for SharedSessionContract#setJdbcBatchSize

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.2.1
    • Component/s: None
    • Labels:
      None
    • Last commented by a user?:
      true

      Description

      Just wrote a blog post about the new session level batch size feature. http://blog.arnoldgalovics.com/2016/06/09/session-level-hibernate-jdbc-batching

      Oliver Gierke pointed out, when using the concept of MethodInterceptors the batch size should be set exactly to the original size as was before after a successful or exceptional execution.

      The current org.hibernate.SharedSessionContract#setJdbcBatchSize method signature makes it impossible to do, because of the primitive integer parameter.

      As I discussed with Vlad Mihalcea, this can be fixed. https://twitter.com/ArnoldGalovics/status/740897265854877696

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: