Browse Source

Switched to JPA

master
Jim Martens 10 months ago
parent
commit
41d67bf5d6
  1. 3
      oparl-server/oparl-server.gradle
  2. 14
      oparl-server/src/main/java/de/twomartens/oparlservice/configs/PersistenceJPAConfig.java
  3. 4
      oparl-server/src/main/java/de/twomartens/oparlservice/repository/NoOp.java
  4. BIN
      oparl-server/src/main/resources/application.yaml

3
oparl-server/oparl-server.gradle

@ -26,9 +26,10 @@ dependencies {
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-websocket'
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 'org.springdoc:springdoc-openapi-ui:1.3.9'
runtimeOnly 'com.h2database:h2'
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
developmentOnly 'org.springframework.boot:spring-boot-devtools'

14
oparl-server/src/main/java/de/twomartens/oparlservice/configs/PersistenceJPAConfig.java

@ -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 {
}

4
oparl-server/src/main/java/de/twomartens/oparlservice/repository/NoOp.java

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

BIN
oparl-server/src/main/resources/application.yaml

Loading…
Cancel
Save