Welcome to the Treehouse Community
Looking to learn something new?
Adam Warzel650 Points
Shouldn't sessionFactory.close() ?
Shouldn't sessionFactory.close() be called in the end of the program? Otherwise the application hangs.
In general, your application should have one sessionFactory which you open when you needed and close it when your are with it .... example ... when you exist a DAL method. I am not familiar with the video you are referring to, but if the video app is closing closing a running app and exiting the program ... then the memory will be freed anyway. It a good practice close the sessionFactory, before existing, regardless.