Class HibernateRefreshCommands


  • public class HibernateRefreshCommands
    extends java.lang.Object
    Reload the hibernate configuration.

    This class must run in App classloader.

    Author:
    Jiri Bubnik
    • Field Detail

      • reloadFlag

        public static boolean reloadFlag
        Flag to check reload status. In unit test we need to wait for reload finish before the test can continue. Set flag to true in the test class and wait until the flag is false again.
    • Constructor Detail

      • HibernateRefreshCommands

        public HibernateRefreshCommands()
    • Method Detail

      • reloadEntityManagerFactory

        public static void reloadEntityManagerFactory()
      • reloadSessionFactory

        public static void reloadSessionFactory()