-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #95 from kanton-bern/feature/HELLODATA-1808_create…
…_teams_for_new_DD HELLODATA-1808 - create teams and auth_subject_ids for new Data Domai…
- Loading branch information
Showing
5 changed files
with
115 additions
and
2 deletions.
There are no files selected for viewing
20 changes: 20 additions & 0 deletions
20
.../main/java/ch/bedag/dap/hellodata/sidecars/cloudbeaver/entities/cbnative/AuthSubject.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
package ch.bedag.dap.hellodata.sidecars.cloudbeaver.entities.cbnative; | ||
|
||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Table; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Getter | ||
@Setter | ||
@EqualsAndHashCode | ||
@Entity | ||
@Table(name = "cb_auth_subject") | ||
public class AuthSubject { | ||
@Id | ||
private String subjectId; | ||
private String subjectType; | ||
private Boolean isSecretStorage; | ||
} |
23 changes: 23 additions & 0 deletions
23
...ver/src/main/java/ch/bedag/dap/hellodata/sidecars/cloudbeaver/entities/cbnative/Team.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
package ch.bedag.dap.hellodata.sidecars.cloudbeaver.entities.cbnative; | ||
|
||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Table; | ||
import lombok.EqualsAndHashCode; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
import java.time.LocalDateTime; | ||
|
||
@Getter | ||
@Setter | ||
@EqualsAndHashCode | ||
@Entity | ||
@Table(name = "cb_team") | ||
public class Team { | ||
@Id | ||
private String teamId; | ||
private String teamName; | ||
private String teamDescription; | ||
private LocalDateTime createTime; | ||
} |
14 changes: 14 additions & 0 deletions
14
...in/java/ch/bedag/dap/hellodata/sidecars/cloudbeaver/repository/AuthSubjectRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package ch.bedag.dap.hellodata.sidecars.cloudbeaver.repository; | ||
|
||
import ch.bedag.dap.hellodata.sidecars.cloudbeaver.entities.cbnative.AuthSubject; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
|
||
@Repository | ||
public interface AuthSubjectRepository extends JpaRepository<AuthSubject, String> { | ||
|
||
List<AuthSubject> findBySubjectId(String subjectId); | ||
|
||
} |
14 changes: 14 additions & 0 deletions
14
.../src/main/java/ch/bedag/dap/hellodata/sidecars/cloudbeaver/repository/TeamRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
package ch.bedag.dap.hellodata.sidecars.cloudbeaver.repository; | ||
|
||
import ch.bedag.dap.hellodata.sidecars.cloudbeaver.entities.cbnative.Team; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
|
||
import java.util.List; | ||
|
||
@Repository | ||
public interface TeamRepository extends JpaRepository<Team, String> { | ||
|
||
List<Team> findByTeamId(String teamName); | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters