Merge pull request 'feat: Database integration' (#5) from 3002833/Backend:main into main
Reviewed-on: Maradona/Backend#5pull/1/head
commit
b778fe02e3
12
pom.xml
12
pom.xml
|
@ -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>
|
||||
|
|
|
@ -22,4 +22,4 @@ public class Project {
|
|||
|
||||
@Column(columnDefinition = "TEXT")
|
||||
private String description;
|
||||
}
|
||||
}
|
|
@ -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> {
|
||||
}
|
|
@ -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> {
|
||||
}
|
|
@ -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> {
|
||||
}
|
|
@ -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> {
|
||||
}
|
|
@ -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> {
|
||||
}
|
|
@ -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> {
|
||||
}
|
|
@ -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> {
|
||||
}
|
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue