Skip to content

DataGrip/hibernate_example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Demonstration of reconnecting to MySQL automatically from Hibernate.

See https://www.databasesandlife.com/automatic-reconnect-from-hibernate-to-mysql/ for instructions.

Branches:

  • The "master" branch demonstrates the problem
  • The "fix" branch demonstrates the fix.

To run the code:

  1. Install Vagrant and VirtualBox on your machine, then run vagrant up.
  2. In one window, execute the Maven command that is printed at the end of vagrant up. This will execute in an infinite loop and attempt to execute statements.
  3. In another window, restart MySQL, and see the error (in the "master" branch) or it work (in the "fix" branch).

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages