-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'IKC-409-data-masking-policies' into IKC-411-data-maskin…
…g-policy-delete # Conflicts: # kouncil-frontend/libs/feat-data-masking/src/index.ts # kouncil-frontend/libs/feat-data-masking/src/lib/policies/policies.component.ts
- Loading branch information
Showing
7 changed files
with
74 additions
and
23 deletions.
There are no files selected for viewing
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
12 changes: 12 additions & 0 deletions
12
kouncil-backend/src/main/java/com/consdata/kouncil/datamasking/dto/PolicyResourceDto.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,12 @@ | ||
package com.consdata.kouncil.datamasking.dto; | ||
|
||
import com.consdata.kouncil.clusters.dto.ClusterDto; | ||
import lombok.Data; | ||
|
||
@Data | ||
public class PolicyResourceDto { | ||
|
||
private Long id; | ||
private ClusterDto cluster; | ||
private String topic; | ||
} |
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
39 changes: 39 additions & 0 deletions
39
kouncil-backend/src/main/java/com/consdata/kouncil/model/datamasking/PolicyResource.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,39 @@ | ||
package com.consdata.kouncil.model.datamasking; | ||
|
||
import com.consdata.kouncil.model.cluster.Cluster; | ||
import javax.persistence.CascadeType; | ||
import javax.persistence.Column; | ||
import javax.persistence.Entity; | ||
import javax.persistence.GeneratedValue; | ||
import javax.persistence.GenerationType; | ||
import javax.persistence.Id; | ||
import javax.persistence.JoinColumn; | ||
import javax.persistence.ManyToOne; | ||
import javax.persistence.SequenceGenerator; | ||
import javax.persistence.Table; | ||
import lombok.Getter; | ||
import lombok.Setter; | ||
|
||
@Entity | ||
@Table(name = "POLICY_RESOURCE") | ||
@Getter | ||
@Setter | ||
public class PolicyResource { | ||
|
||
@Id | ||
@Column(name = "ID") | ||
@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_POLICY_RESOURCE_GEN") | ||
@SequenceGenerator(name = "SEQ_POLICY_RESOURCE_GEN", sequenceName = "SEQ_POLICY_RESOURCE", initialValue = 1, allocationSize = 1) | ||
private Long id; | ||
|
||
@ManyToOne(cascade = {CascadeType.PERSIST, CascadeType.MERGE}) | ||
@JoinColumn(name = "CLUSTER_ID", insertable = false, updatable = false) | ||
private Cluster cluster; | ||
|
||
@Column(name = "TOPIC") | ||
private String topic; | ||
|
||
@ManyToOne(cascade = {CascadeType.PERSIST, CascadeType.MERGE}) | ||
@JoinColumn(name = "POLICY_ID", insertable = false, updatable = false) | ||
private Policy policy; | ||
} |
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
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
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