META-INF.persistence.xml Maven / Gradle / Ivy
<?xml version="1.0" encoding="UTF-8"?> <persistence xmlns="https://jakarta.ee/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="https://jakarta.ee/xml/ns/persistence https://jakarta.ee/xml/ns/persistence/persistence_3_0.xsd" version="3.0" > <!-- 使用JTA事务的propertyset实现 --> <persistence-unit name="propertyset" transaction-type="RESOURCE_LOCAL"> <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> <non-jta-data-source>propertysetDataSource</non-jta-data-source> <class>com.gitee.jmash.propertyset.entity.PropertiesEntity</class> <exclude-unlisted-classes>false</exclude-unlisted-classes> <properties> <property name="default" value="true" /> <property name="hibernate.cache.use_second_level_cache" value="false" /> <property name="hibernate.cache.use_query_cache" value="false" /> <!-- <property name="hibernate.hbm2ddl.auto" value="update" /> --> <!-- hibernate5 以后默认采用新序列方式 --> <property name="hibernate.id.new_generator_mappings" value="false"/> <property name="hibernate.dialect.storage_engine" value="innodb" /> <property name="hibernate.dialect" value="org.hibernate.dialect.MariaDBDialect" /> <property name="hibernate.jdbc.batch_size" value="50" /> <property name="hibernate.session_factory.interceptor" value="com.gitee.jmash.core.orm.jpa.entity.EntityEventInterceptor" /> </properties> </persistence-unit> </persistence>
© 2015 - 2025 Weber Informatics LLC | Privacy Policy