Class HibernatePersistenceProvider

  • All Implemented Interfaces:
    jakarta.persistence.spi.PersistenceProvider

    public class HibernatePersistenceProvider
    extends Object
    implements jakarta.persistence.spi.PersistenceProvider
    The Hibernate PersistenceProvider implementation
    • Constructor Detail

      • HibernatePersistenceProvider

        public HibernatePersistenceProvider()
    • Method Detail

      • createEntityManagerFactory

        public jakarta.persistence.EntityManagerFactory createEntityManagerFactory​(String persistenceUnitName,
                                                                                   Map properties)

        Note: per-spec, the values passed as properties override values found in persistence.xml

        Specified by:
        createEntityManagerFactory in interface jakarta.persistence.spi.PersistenceProvider
      • wrap

        protected static Map wrap​(Map properties)
      • createContainerEntityManagerFactory

        public jakarta.persistence.EntityManagerFactory createContainerEntityManagerFactory​(jakarta.persistence.spi.PersistenceUnitInfo info,
                                                                                            Map properties)

        Note: per-spec, the values passed as properties override values found in PersistenceUnitInfo

        Specified by:
        createContainerEntityManagerFactory in interface jakarta.persistence.spi.PersistenceProvider
      • generateSchema

        public void generateSchema​(jakarta.persistence.spi.PersistenceUnitInfo info,
                                   Map map)
        Specified by:
        generateSchema in interface jakarta.persistence.spi.PersistenceProvider
      • generateSchema

        public boolean generateSchema​(String persistenceUnitName,
                                      Map map)
        Specified by:
        generateSchema in interface jakarta.persistence.spi.PersistenceProvider
      • getEntityManagerFactoryBuilder

        protected EntityManagerFactoryBuilder getEntityManagerFactoryBuilder​(jakarta.persistence.spi.PersistenceUnitInfo info,
                                                                             Map integration)
      • getProviderUtil

        public jakarta.persistence.spi.ProviderUtil getProviderUtil()
        Specified by:
        getProviderUtil in interface jakarta.persistence.spi.PersistenceProvider