mirror of
https://github.com/gmbrax/MediaManager-core.git
synced 2026-11-09 22:10:17 +00:00
- Added `.gitignore` for common IDE and build artifacts. - Configured `pom.xml` with dependencies: PostgreSQL, Hibernate, HikariCP, Log4j 2, Jackson, JUnit 5. - Created `Media` entity with JPA annotations. - Added `application.properties` for database and IPC configuration. - Configured Log4j 2 with console and rolling file appenders. - Provided `README.md` with setup instructions. - Included `MediaManagerApplication` class as a starting point.
29 lines
1.3 KiB
XML
29 lines
1.3 KiB
XML
<?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">
|
|
|
|
<persistence-unit name="MediaManagerPU" transaction-type="RESOURCE_LOCAL">
|
|
<provider>org.hibernate.jpa.HibernatePersistenceProvider</provider>
|
|
|
|
<!-- Add entity classes here as they are created -->
|
|
<!-- <class>com.mediamanager.model.Media</class> -->
|
|
|
|
<properties>
|
|
<!-- Database connection properties will be set programmatically -->
|
|
<property name="hibernate.dialect" value="org.hibernate.dialect.PostgreSQLDialect"/>
|
|
<property name="hibernate.hbm2ddl.auto" value="update"/>
|
|
<property name="hibernate.show_sql" value="false"/>
|
|
<property name="hibernate.format_sql" value="true"/>
|
|
|
|
<!-- Connection pool settings -->
|
|
<property name="hibernate.hikari.maximumPoolSize" value="10"/>
|
|
<property name="hibernate.hikari.minimumIdle" value="2"/>
|
|
<property name="hibernate.hikari.connectionTimeout" value="30000"/>
|
|
</properties>
|
|
</persistence-unit>
|
|
|
|
</persistence>
|