Class PersistenceXmlUtility


  • public class PersistenceXmlUtility
    extends java.lang.Object
    Utility class that provides methods to manipulate persistence.xml file.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static com.google.common.collect.ImmutableList<java.lang.Class<?>> getManagedClasses()
      Returns all managed classes defined in persistence.xml.
      static org.hibernate.jpa.boot.internal.ParsedPersistenceXmlDescriptor getParsedPersistenceXmlDescriptor()
      Returns the ParsedPersistenceXmlDescriptor instance constructed from persistence.xml.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • getParsedPersistenceXmlDescriptor

        public static org.hibernate.jpa.boot.internal.ParsedPersistenceXmlDescriptor getParsedPersistenceXmlDescriptor()
        Returns the ParsedPersistenceXmlDescriptor instance constructed from persistence.xml.
      • getManagedClasses

        public static com.google.common.collect.ImmutableList<java.lang.Class<?>> getManagedClasses()
        Returns all managed classes defined in persistence.xml.