Switched to JPA

This commit is contained in:
Jim Martens 2020-07-26 19:04:50 +02:00
parent df412e6659
commit 41d67bf5d6
4 changed files with 20 additions and 1 deletions

View File

@ -26,9 +26,10 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator' implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-websocket' implementation 'org.springframework.boot:spring-boot-starter-websocket'
implementation 'org.springframework.boot:spring-boot-starter-log4j2' implementation 'org.springframework.boot:spring-boot-starter-log4j2'
implementation 'org.springframework.data:spring-data-jdbc' implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'io.micrometer:micrometer-registry-prometheus' implementation 'io.micrometer:micrometer-registry-prometheus'
implementation 'org.springdoc:springdoc-openapi-ui:1.3.9' implementation 'org.springdoc:springdoc-openapi-ui:1.3.9'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor' annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
developmentOnly 'org.springframework.boot:spring-boot-devtools' developmentOnly 'org.springframework.boot:spring-boot-devtools'

View File

@ -0,0 +1,14 @@
package de.twomartens.oparlservice.configs;
import de.twomartens.oparlservice.repository.NoOp;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.transaction.annotation.EnableTransactionManagement;
@Configuration
@EnableJpaRepositories(basePackageClasses = NoOp.class)
@EnableTransactionManagement
public class PersistenceJPAConfig {
}

View File

@ -0,0 +1,4 @@
package de.twomartens.oparlservice.repository;
public interface NoOp {
}