-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
story(ccmspui-355) add provider request data to existing endpoint (#113)
- Loading branch information
1 parent
29d18be
commit c54de35
Showing
8 changed files
with
125 additions
and
0 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
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
51 changes: 51 additions & 0 deletions
51
data-service/src/main/java/uk/gov/laa/ccms/data/entity/ProviderRequestData.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,51 @@ | ||
package uk.gov.laa.ccms.data.entity; | ||
|
||
import com.fasterxml.jackson.databind.PropertyNamingStrategies; | ||
import com.fasterxml.jackson.databind.annotation.JsonNaming; | ||
import jakarta.persistence.Column; | ||
import jakarta.persistence.EmbeddedId; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.JoinColumn; | ||
import jakarta.persistence.ManyToOne; | ||
import jakarta.persistence.Table; | ||
import java.io.Serializable; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import org.hibernate.annotations.Immutable; | ||
|
||
/** | ||
* Entity representing the provider request data. | ||
*/ | ||
@Entity | ||
@Table(name = "XXCCMS_PROVIDER_REQUEST_DATA_V") | ||
@Data | ||
@NoArgsConstructor | ||
@Immutable | ||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public class ProviderRequestData implements Serializable { | ||
|
||
@EmbeddedId | ||
private ProviderRequestDataId id; | ||
|
||
@Column(name = "data_item_label") | ||
private String dataItemLabel; | ||
|
||
@Column(name = "data_item_type", nullable = false) | ||
private String dataItemType; | ||
|
||
@Column(name = "mandatory_flag", nullable = false) | ||
private String mandatoryFlag; | ||
|
||
@Column(name = "data_item_seq", nullable = false) | ||
private String dataItemSeq; | ||
|
||
@Column(name = "lov_lookup_type") | ||
private String lovLookupType; | ||
|
||
@ManyToOne | ||
@JoinColumn(name = "REQUEST_TYPE") | ||
private ProviderRequestType providerRequestType; | ||
|
||
|
||
|
||
} |
22 changes: 22 additions & 0 deletions
22
data-service/src/main/java/uk/gov/laa/ccms/data/entity/ProviderRequestDataId.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,22 @@ | ||
package uk.gov.laa.ccms.data.entity; | ||
|
||
import jakarta.persistence.Column; | ||
import java.io.Serializable; | ||
import lombok.Data; | ||
import org.hibernate.annotations.Immutable; | ||
|
||
/** | ||
* Composite ID class for provider request data. | ||
*/ | ||
@Data | ||
@Immutable | ||
public class ProviderRequestDataId implements Serializable { | ||
|
||
|
||
@Column(name = "request_type", nullable = false, insertable = false, updatable = false) | ||
private String requestType; | ||
|
||
@Column(name = "data_item_code", nullable = false) | ||
private String dataItemCode; | ||
|
||
} |
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