-
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(ccls-2012) general request types endpoint
- Loading branch information
1 parent
eb99575
commit dd72610
Showing
12 changed files
with
371 additions
and
4 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
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
53 changes: 53 additions & 0 deletions
53
data-service/src/main/java/uk/gov/laa/ccms/data/entity/ProviderRequestType.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,53 @@ | ||
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.Entity; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Table; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import org.hibernate.annotations.Immutable; | ||
|
||
/** | ||
* Represents a provider request type entity, mapped to the database view | ||
* XXCCMS_PROVIDER_REQTYPES_V. This class is immutable and uses | ||
* SnakeCaseStrategy for JSON serialization. | ||
*/ | ||
@Entity | ||
@Data | ||
@NoArgsConstructor | ||
@Table(name = "XXCCMS_PROVIDER_REQTYPES_V") | ||
@Immutable | ||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
public class ProviderRequestType { | ||
|
||
|
||
@Id | ||
@Column(name = "REQUEST_TYPE") | ||
private String type; | ||
|
||
@Column(name = "REQUEST_NAME") | ||
private String name; | ||
|
||
@Column(name = "CASE_RELATED_FLAG") | ||
private Boolean caseRelated; | ||
|
||
@Column(name = "ADDITIONAL_INFO_PROMPT") | ||
private String additionalInformationPrompt; | ||
|
||
@Column(name = "TASK_TYPE_ID") | ||
private String taskTypeId; | ||
|
||
@Column(name = "FILE_UPLD_ENABLED") | ||
private Boolean fileUploadEnabled; | ||
|
||
@Column(name = "ACCESS_FUNC_CODE") | ||
private String accessFunctionCode; | ||
|
||
@Column(name = "FILE_UPLD_PROMPT") | ||
private String fileUploadPrompt; | ||
|
||
|
||
} |
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
13 changes: 13 additions & 0 deletions
13
...-service/src/main/java/uk/gov/laa/ccms/data/repository/ProviderRequestTypeRepository.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,13 @@ | ||
package uk.gov.laa.ccms.data.repository; | ||
|
||
import uk.gov.laa.ccms.data.entity.ProviderRequestType; | ||
|
||
/** | ||
* Repository interface for accessing {@link ProviderRequestType} entities. | ||
* Extends {@link ReadOnlyRepository} for read-only operations. | ||
*/ | ||
|
||
public interface ProviderRequestTypeRepository | ||
extends ReadOnlyRepository<ProviderRequestType, String> { | ||
|
||
} |
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
Oops, something went wrong.