-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into performance-improvement-1300-concurrency
- Loading branch information
Showing
30 changed files
with
896 additions
and
375 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
# Motivation and Context | ||
<!--- Why is this change required? What problem does it solve? --> | ||
|
||
# What has changed | ||
<!--- What code changes has been made --> | ||
<!--- Has there been any refactoring --> | ||
<!--- What tests have been written --> | ||
|
||
# How to test? | ||
<!--- Describe in detail how you tested your changes. --> | ||
<!--- Include details of your testing environment, and the tests you ran to see how your change affects other areas of the code, etc. --> | ||
<!--- Are there any automated tests that mean changes don't need to be manually changed --> | ||
|
||
# Links | ||
<!--- Add any links to issues (trello, github issues) --> | ||
<!--- Links to any documentation --> | ||
<!--- Links to any related PRs --> |
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
35 changes: 35 additions & 0 deletions
35
src/main/java/uk/gov/ons/ctp/response/sample/domain/model/SampleAttributes.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,35 @@ | ||
package uk.gov.ons.ctp.response.sample.domain.model; | ||
|
||
|
||
import com.vladmihalcea.hibernate.type.json.JsonBinaryType; | ||
import lombok.*; | ||
import net.sourceforge.cobertura.CoverageIgnore; | ||
import org.hibernate.annotations.Type; | ||
import org.hibernate.annotations.TypeDef; | ||
|
||
import javax.persistence.*; | ||
import java.io.Serializable; | ||
import java.util.Map; | ||
import java.util.UUID; | ||
|
||
/** | ||
* Domain model object. | ||
*/ | ||
@CoverageIgnore | ||
@Entity | ||
@Data | ||
@Builder | ||
@NoArgsConstructor(access = AccessLevel.PUBLIC) | ||
@AllArgsConstructor | ||
@TypeDef(name = "jsonb", typeClass = JsonBinaryType.class) | ||
@Table(name = "sampleattributes", schema = "sample") | ||
public class SampleAttributes implements Serializable { | ||
|
||
@Id | ||
@Column(name = "sampleunitfk") | ||
private UUID sampleUnitFK; | ||
|
||
@Column(name = "attributes", columnDefinition = "jsonb") | ||
@Type(type = "jsonb") | ||
private Map<String, String> attributes; | ||
} |
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
16 changes: 16 additions & 0 deletions
16
...ain/java/uk/gov/ons/ctp/response/sample/domain/repository/SampleAttributesRepository.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,16 @@ | ||
package uk.gov.ons.ctp.response.sample.domain.repository; | ||
|
||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.stereotype.Repository; | ||
import uk.gov.ons.ctp.response.sample.domain.model.SampleAttributes; | ||
|
||
import java.util.UUID; | ||
|
||
|
||
/** | ||
* JPA Data Repository needed to persist Survey SampleAttributes | ||
*/ | ||
@Repository | ||
public interface SampleAttributesRepository extends JpaRepository<SampleAttributes, UUID> { | ||
|
||
} |
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
Oops, something went wrong.