Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Revolution/src/main/resources/META-INF/persistence.xml
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
43 lines (38 sloc)
2.76 KB
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <persistence xmlns="http://java.sun.com/xml/ns/persistence" | |
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
| xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd" | |
| version="2.0"> | |
| <persistence-unit name="org.mdev.revolution.jpa" transaction-type="RESOURCE_LOCAL"> <!-- JTA --> | |
| <provider>org.hibernate.jpa.HibernatePersistenceProvider</provider> | |
| <!-- JPA entity classes --> | |
| <class>org.mdev.revolution.database.domain.Player</class> | |
| <class>org.mdev.revolution.database.domain.navigator.FlatCat</class> | |
| <class>org.mdev.revolution.database.domain.landingview.Promotion</class> | |
| <class>org.mdev.revolution.database.domain.rooms.Room</class> | |
| <class>org.mdev.revolution.database.domain.rooms.RoomModel</class> | |
| <properties> | |
| <property name="hibernate.connection.driver_class" value="org.apache.derby.jdbc.EmbeddedDriver"/> | |
| <!-- Important, JTA Transaction Platform --> | |
| <!--<property name="hibernate.transaction.jta.platform" | |
| value="org.hibernate.service.jta.platform.internal.SunOneJtaPlatform"/>--> | |
| <property name="hibernate.connection.datasource" value="java:comp/env/jdbc/default"/> | |
| <property name="hibernate.hbm2ddl.auto" value="update"/> | |
| <property name="hibernate.id.new_generator_mappings" value="true"/> | |
| <property name="hibernate.dialect" value="org.hibernate.dialect.MySQLInnoDBDialect"/> | |
| <property name="hibernate.show_sql" value="true"/> | |
| <property name="hibernate.format_sql" value="true"/> | |
| <property name="hibernate.cache.use_second_level_cache" value="true"/> | |
| <property name="hibernate.cache.use_query_cache" value="true"/> | |
| <property name="hibernate.cache.use_minimal_puts" value="true"/> | |
| <!-- HazelcastLocalCacheRegionFactory for local node storage --> | |
| <property name="hibernate.cache.region.factory_class" value="com.hazelcast.hibernate.HazelcastCacheRegionFactory"/> | |
| <property name="hibernate.cache.hazelcast.use_native_client" value="false"/> | |
| <property name="hibernate.cache.hazelcast.native_client_hosts" value="127.0.0.1"/> | |
| <property name="hibernate.cache.hazelcast.native_client_group" value="hibernate"/> | |
| <property name="hibernate.cache.hazelcast.native_client_password" value="password"/> | |
| <property name="hibernate.generate_statistics" value="true"/> | |
| <property name="hibernate.cache.use_structured_entries" value="true"/> | |
| <property name="javax.persistence.sharedCache.mode" value="ENABLE_SELECTIVE"/> | |
| </properties> | |
| </persistence-unit> | |
| </persistence> |