-
Notifications
You must be signed in to change notification settings - Fork 316
feat: Add DatabaseSessionService with Hibernate and Flyway support #654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -104,6 +104,17 @@ | |
| <groupId>com.fasterxml.jackson.dataformat</groupId> | ||
| <artifactId>jackson-dataformat-yaml</artifactId> | ||
| </dependency> | ||
| <!-- Jackson JAXB annotations module for ObjectMapper.findAndRegisterModules() --> | ||
| <dependency> | ||
| <groupId>com.fasterxml.jackson.module</groupId> | ||
| <artifactId>jackson-module-jaxb-annotations</artifactId> | ||
| </dependency> | ||
| <!-- JAXB API needed by jackson-module-jaxb-annotations on modern JDKs --> | ||
| <dependency> | ||
| <groupId>jakarta.xml.bind</groupId> | ||
| <artifactId>jakarta.xml.bind-api</artifactId> | ||
| <version>4.0.0</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.google.protobuf</groupId> | ||
| <artifactId>protobuf-java</artifactId> | ||
|
|
@@ -189,6 +200,70 @@ | |
| <artifactId>opentelemetry-sdk-testing</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
|
|
||
| <!-- Database Session Service Dependencies --> | ||
|
|
||
| <!-- Hibernate ORM - JPA implementation for object-relational mapping --> | ||
| <dependency> | ||
| <groupId>org.hibernate.orm</groupId> | ||
| <artifactId>hibernate-core</artifactId> | ||
| </dependency> | ||
|
|
||
| <!-- Jakarta Persistence API - Standard JPA annotations and interfaces --> | ||
| <dependency> | ||
| <groupId>jakarta.persistence</groupId> | ||
| <artifactId>jakarta.persistence-api</artifactId> | ||
| </dependency> | ||
|
|
||
| <!-- HikariCP - High-performance JDBC connection pool --> | ||
| <dependency> | ||
| <groupId>com.zaxxer</groupId> | ||
| <artifactId>HikariCP</artifactId> | ||
| </dependency> | ||
|
|
||
| <!-- Hibernate HikariCP Integration - Enables HikariCP as Hibernate's connection provider --> | ||
| <dependency> | ||
| <groupId>org.hibernate.orm</groupId> | ||
| <artifactId>hibernate-hikaricp</artifactId> | ||
| </dependency> | ||
|
|
||
| <!-- Database Drivers --> | ||
|
|
||
| <!-- H2 Database - In-memory database for testing --> | ||
| <dependency> | ||
| <groupId>com.h2database</groupId> | ||
| <artifactId>h2</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
|
|
||
| <!-- PostgreSQL Driver - JDBC driver for PostgreSQL databases (optional for production use) --> | ||
| <dependency> | ||
| <groupId>org.postgresql</groupId> | ||
| <artifactId>postgresql</artifactId> | ||
| <optional>true</optional> | ||
| </dependency> | ||
|
|
||
| <!-- MySQL Driver - JDBC driver for MySQL databases (optional for production use) --> | ||
| <dependency> | ||
| <groupId>com.mysql</groupId> | ||
| <artifactId>mysql-connector-j</artifactId> | ||
| <optional>true</optional> | ||
| </dependency> | ||
|
|
||
| <!-- Database Migration --> | ||
|
|
||
| <!-- Flyway Core - Database schema migration and versioning tool --> | ||
| <dependency> | ||
| <groupId>org.flywaydb</groupId> | ||
| <artifactId>flyway-core</artifactId> | ||
| </dependency> | ||
|
|
||
| <!-- Flyway PostgreSQL Support - PostgreSQL-specific migration support --> | ||
| <dependency> | ||
| <groupId>org.flywaydb</groupId> | ||
| <artifactId>flyway-database-postgresql</artifactId> | ||
| <scope>runtime</scope> | ||
| </dependency> | ||
|
Comment on lines
+253
to
+266
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For full support of MySQL, especially in multi-pod environments where migration locking is crucial, it's recommended to include the |
||
| </dependencies> | ||
| <build> | ||
| <resources> | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.