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

Hibernate Integrations Guide: an incorrect example LatestAndGreatestConnectionProviderImpl

    Details

    • Bug Testcase Reminder (view):

      Bug reports should generally be accompanied by a test case!

    • Suitable for new contributors:
      Yes, likely
    • Last commented by a user?:
      true
    • Sprint:

      Description

      Hibernate Integrations Guide

      1.5.1. Custom Service Implementations (overriding)

      Example 1.1. Custom ConnectionProvider implementation
      LatestAndGreatestConnectionProviderImpl.java#L26

      	public void stop() {
      		available = true;
      
      		// stop the underlying pool
      		lagPool.shutdown();
      	}
      

      should be changed to

      	public void stop() {
      		available = false;
      
      		// stop the underlying pool
      		lagPool.shutdown();
      	}
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 3h
                3h
                Remaining:
                Remaining Estimate - 3h
                3h
                Logged:
                Time Spent - Not Specified
                Not Specified