-
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-1878): add /users endpoint * story(ccls-1849): add category of law endpoint
- Loading branch information
Showing
12 changed files
with
341 additions
and
24 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
42 changes: 42 additions & 0 deletions
42
data-service/src/main/java/uk/gov/laa/ccms/data/entity/CategoryOfLawLookupValue.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,42 @@ | ||
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.springframework.data.annotation.Immutable; | ||
|
||
/** | ||
* Represents a lookup value for category of law. | ||
* | ||
* <p>This entity corresponds to the "XXCCMS_CATEGORY_OF_LAW_V" table in the database. | ||
* The JSON representation of this entity uses the snake case naming strategy.</p> | ||
* | ||
* <p>It's an immutable entity, meaning its state cannot be changed once it's created. The primary | ||
* attributes of this entity include a code, its corresponding matter type description, and an | ||
* indicator whether copying the cost limit is allowed for this particular category of law.</p> | ||
* | ||
* @see PropertyNamingStrategies.SnakeCaseStrategy | ||
*/ | ||
@Data | ||
@Entity | ||
@NoArgsConstructor | ||
@JsonNaming(PropertyNamingStrategies.SnakeCaseStrategy.class) | ||
@Table(name = "XXCCMS_CATEGORY_OF_LAW_V") | ||
@Immutable | ||
public class CategoryOfLawLookupValue { | ||
|
||
@Id | ||
@Column(name = "CATEGORY_OF_LAW_CODE") | ||
private String code; | ||
|
||
@Column(name = "MATTER_TYPE_DESCRIPTION") | ||
private String matterTypeDescription; | ||
|
||
@Column(name = "COPY_COST_LIMIT_IND") | ||
private Boolean copyCostLimit; | ||
} |
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
20 changes: 20 additions & 0 deletions
20
...ice/src/main/java/uk/gov/laa/ccms/data/repository/CategoryOfLawLookupValueRepository.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 uk.gov.laa.ccms.data.repository; | ||
|
||
import org.springframework.stereotype.Repository; | ||
import uk.gov.laa.ccms.data.entity.CategoryOfLawLookupValue; | ||
|
||
/** | ||
* Repository interface for accessing {@link CategoryOfLawLookupValue} entities. | ||
* | ||
* <p>This repository extends the {@link ReadOnlyRepository} interface, it supports | ||
* read-only operations for the {@code CategoryOfLawLookupValue} entity, identified by a | ||
* primary key of type {@code String}.</p> | ||
* | ||
* @see CategoryOfLawLookupValue | ||
* @see ReadOnlyRepository | ||
*/ | ||
@Repository | ||
public interface CategoryOfLawLookupValueRepository extends | ||
ReadOnlyRepository<CategoryOfLawLookupValue, String> { | ||
|
||
} |
Oops, something went wrong.