Skip to content

Commit

Permalink
Added empty protected constructor for DTO
Browse files Browse the repository at this point in the history
  • Loading branch information
jorizci committed Aug 29, 2018
1 parent 783a102 commit a057e8f
Show file tree
Hide file tree
Showing 12 changed files with 96 additions and 15 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class AnalysisDTO implements Analysis {
@Column(nullable = false)
private String alias;

AnalysisDTO(){
}

public AnalysisDTO(Analysis analysis) {
this(analysis.getSubmissionAccount(), analysis.getAlias());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class ArrayDTO implements Array {
@Column(nullable = false)
private String alias;

ArrayDTO(){
}

public ArrayDTO(Array array) {
this(array.getSubmissionAccount(), array.getAlias());
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/uk/ac/ebi/ega/accession/dac/rest/DacDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class DacDTO implements Dac {
@Column(nullable = false)
private String alias;

DacDTO(){
}

public DacDTO(Dac dac) {
this(dac.getSubmissionAccount(), dac.getAlias());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class DatasetDTO implements Dataset {
@Column(nullable = false)
private String alias;

DatasetDTO(){
}

public DatasetDTO(Dataset dataset) {
this(dataset.getSubmissionAccount(), dataset.getAlias());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class ExperimentDTO implements Experiment {
@Column(nullable = false)
private String alias;

ExperimentDTO(){
}

public ExperimentDTO(Experiment experiment) {
this(experiment.getSubmissionAccount(), experiment.getAlias());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class PolicyDTO implements Policy {
@Column(nullable = false)
private String alias;

PolicyDTO(){
}

public PolicyDTO(Policy policy) {
this(policy.getSubmissionAccount(), policy.getAlias());
}
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/uk/ac/ebi/ega/accession/run/rest/RunDTO.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class RunDTO implements Run {
@Column(nullable = false)
private String alias;

RunDTO(){
}

public RunDTO(Run run) {
this(run.getSubmissionAccount(), run.getAlias());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class SampleControlledDTO implements SampleControlled {
@Column(nullable = false)
private String alias;

SampleControlledDTO(){
}

public SampleControlledDTO(SampleControlled sampleControlled) {
this(sampleControlled.getSubmissionAccount(), sampleControlled.getAlias());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ public class SampleOpenDTO implements SampleOpen {
@Column(nullable = false)
private String biosampleAccession;

SampleOpenDTO(){
}

public SampleOpenDTO(SampleOpen sampleOpen) {
this(sampleOpen.getBiosampleAccession());
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,9 @@ public class StudyDTO implements Study {
@Column(nullable = false)
private String alias;

StudyDTO(){
}

public StudyDTO(Study study) {
this(study.getSubmissionAccount(), study.getAlias());
}
Expand Down
76 changes: 61 additions & 15 deletions src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -15,27 +15,73 @@
# limitations under the License.
#
#
accessioning.namespace=EGA
# org.springframework.transaction -> trans
accessioning.variant.instanceId=instance-01;
accessioning.variant.blockSize=1000
accessioning.variant.id=variant
accessioning.run.instanceId=instance-01;
accessioning.run.blockSize=1000
accessioning.run.categoryId=run

#####################################################################################
# SPRING-CORE
#####################################################################################
spring.application.name=EGA accession service
# Bean jmx domain when using multiple applications with tomcat.
spring.jmx.default-domain=ega-accession
endpoints.jmx.domain=ega-accession
#####################################################################################
# DATABASES
#####################################################################################
spring.jpa.hibernate.use-new-id-generator-mappings=true
spring.datasource.url=@egaAcccession-db.url@
spring.datasource.username=@egaAccession-db.username@
spring.datasource.password=@egaAcccession-db.password@
spring.jpa.hibernate.ddl-auto=validate
spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
spring.jpa.generate-ddl=true

# Bean jmx domain for actuator when using multiple applications with tomcat.
spring.jmx.default-domain=ega-accession
endpoints.jmx.domain=ega-accession

#####################################################################################
# ACTUATOR
#####################################################################################
management.security.enabled=false
management.context-path=/actuator
management.endpoint.health.show-details=always
endpoints.health.sensitive=false
endpoints.health.sensitive=false
#####################################################################################
# APPLICATION
#####################################################################################

accessioning.namespace=EGA
accessioning.variant.instanceId=instance-01;

accessioning.monotonic.file.blockSize=1000
accessioning.monotonic.file.blockStartValue=0
accessioning.monotonic.file.nextBlockInterval=0

accessioning.monotonic.study.blockSize=1000
accessioning.monotonic.study.blockStartValue=0
accessioning.monotonic.study.nextBlockInterval=0

accessioning.monotonic.run.blockSize=1000
accessioning.monotonic.run.blockStartValue=0
accessioning.monotonic.run.nextBlockInterval=0

accessioning.monotonic.analysis.blockSize=1000
accessioning.monotonic.analysis.blockStartValue=0
accessioning.monotonic.analysis.nextBlockInterval=0

accessioning.monotonic.experiment.blockSize=1000
accessioning.monotonic.experiment.blockStartValue=0
accessioning.monotonic.experiment.nextBlockInterval=0

accessioning.monotonic.dac.blockSize=1000
accessioning.monotonic.dac.blockStartValue=0
accessioning.monotonic.dac.nextBlockInterval=0

accessioning.monotonic.policy.blockSize=1000
accessioning.monotonic.policy.blockStartValue=0
accessioning.monotonic.policy.nextBlockInterval=0

accessioning.monotonic.dataset.blockSize=1000
accessioning.monotonic.dataset.blockStartValue=0
accessioning.monotonic.dataset.nextBlockInterval=0

accessioning.monotonic.array.blockSize=1000
accessioning.monotonic.array.blockStartValue=0
accessioning.monotonic.array.nextBlockInterval=0

accessioning.monotonic.sample.blockSize=1000
accessioning.monotonic.sample.blockStartValue=0
accessioning.monotonic.sample.nextBlockInterval=0
5 changes: 5 additions & 0 deletions src/main/resources/banner.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
___ ___ _ _ ___ ___ ___ ___ ___ ___ ___ _ _
| __/ __| /_\ ___ /_\ / __/ __| __/ __/ __|_ _/ _ \| \| |
| _| (_ |/ _ \___/ _ \ (_| (__| _|\__ \__ \| | (_) | .` |
|___\___/_/ \_\ /_/ \_\___\___|___|___/___/___\___/|_|\_|
${application.title} ${application.formatted-version} - Spring Boot ${spring-boot.formatted-version}

0 comments on commit a057e8f

Please sign in to comment.