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

Make SessionImplementor extend WrapperOptions

    Details

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

      Description

      As per the TODO in AbstractStandardBasicType, have SessionImplementor expose WrapperOptions via a new WrapperOptionsContext contract. This removes the need to allocate a new WrapperOptions for every call and saves a lot of allocations.

      There are 2 pieces 2 this:

      1. Introduction of the new WrapperOptionsContext contract (composition/delegation)
      2. Having SessionImplementor implement WrapperOptionsContext

      5.1 will have both. In the interest of compatibility, for 5.0 I will do this slightly differently, namely limiting the implementation of WrapperOptionsContext to just SessionImpl, StatelessSessionImpl and SessionDelegatprBaseImpl specifically. This allows custom Session implementors to continue to work as is.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - Not Specified
                Not Specified
                Logged:
                Time Spent - 1h 14m
                1h 14m