Merge pull request 'feat: Database integration' (#5) from 3002833/Backend:main into main

Reviewed-on: Maradona/Backend#5
pull/1/head
David Hess 2024-10-28 15:33:37 +01:00
commit b778fe02e3
10 changed files with 59 additions and 8 deletions

12
pom.xml
View File

@ -42,22 +42,22 @@
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-thymeleaf</artifactId>
</dependency>
<dependency>
<!-- <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
</dependency> -->
<dependency>
<groupId>org.thymeleaf.extras</groupId>
<artifactId>thymeleaf-extras-springsecurity6</artifactId>
</dependency>
<dependency>
<!-- <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-client</artifactId>
</dependency>
<dependency>
</dependency> -->
<!-- <dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-oauth2-resource-server</artifactId>
</dependency>
</dependency> -->
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>

View File

@ -22,4 +22,4 @@ public class Project {
@Column(columnDefinition = "TEXT")
private String description;
}
}

View File

@ -0,0 +1,7 @@
package com.maradona.backend.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import com.maradona.backend.entities.Employee;
public interface EmployeeRepository extends JpaRepository<Employee, Long> {
}

View File

@ -0,0 +1,7 @@
package com.maradona.backend.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import com.maradona.backend.entities.FormOfAddress;
public interface FormOfAddressRepository extends JpaRepository<FormOfAddress, Long> {
}

View File

@ -0,0 +1,7 @@
package com.maradona.backend.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import com.maradona.backend.entities.PrimarySkill;
public interface PrimarySkillRepository extends JpaRepository<PrimarySkill, Long> {
}

View File

@ -0,0 +1,7 @@
package com.maradona.backend.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import com.maradona.backend.entities.ProjectAssignment;
public interface ProjectAssignmentRepository extends JpaRepository<ProjectAssignment, Long> {
}

View File

@ -0,0 +1,7 @@
package com.maradona.backend.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import com.maradona.backend.entities.Project;
public interface ProjectRepository extends JpaRepository<Project, Long> {
}

View File

@ -0,0 +1,7 @@
package com.maradona.backend.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import com.maradona.backend.entities.SecondarySkill;
public interface SecondarySkillRepository extends JpaRepository<SecondarySkill, Long> {
}

View File

@ -0,0 +1,7 @@
package com.maradona.backend.repositories;
import org.springframework.data.jpa.repository.JpaRepository;
import com.maradona.backend.entities.SkillAssignment;
public interface SkillAssignmentRepository extends JpaRepository<SkillAssignment, Long> {
}

View File

@ -1,4 +1,6 @@
spring:
application:
name: maradona-backend
profiles:
active: dev # Set 'dev' profile as the active profile for development
@ -6,7 +8,7 @@ spring:
url: jdbc:h2:mem:testdb
driver-class-name: org.h2.Driver
username: sa
password: password
password: password123
h2:
console: