@@ -45,8 +45,8 @@ public class SamplePreview {
45
45
@ Column (name = "label" )
46
46
private String sampleLabel ;
47
47
private String comment ;
48
- @ Column (name = "analysis_type " )
49
- private String analysisType ;
48
+ @ Column (name = "analysis_method " )
49
+ private String analysisMethod ;
50
50
@ OneToOne (cascade = CascadeType .ALL )
51
51
@ JoinColumn (name = "experimentalGroupId" )
52
52
private ExperimentalGroup experimentalGroup ;
@@ -61,7 +61,7 @@ protected SamplePreview() {
61
61
private SamplePreview (ExperimentId experimentId , SampleId sampleId , String sampleCode ,
62
62
String batchLabel , String bioReplicateLabel ,
63
63
String sampleLabel , ExperimentalGroup experimentalGroup , String species , String specimen ,
64
- String analyte , String analysisType , String comment ) {
64
+ String analyte , String analysisMethod , String comment ) {
65
65
Objects .requireNonNull (experimentId );
66
66
Objects .requireNonNull (sampleId );
67
67
Objects .requireNonNull (sampleCode );
@@ -82,9 +82,9 @@ private SamplePreview(ExperimentId experimentId, SampleId sampleId, String sampl
82
82
this .species = species ;
83
83
this .specimen = specimen ;
84
84
this .analyte = analyte ;
85
+ this .analysisMethod = analysisMethod ;
85
86
// optional columns
86
87
this .comment = comment ;
87
- this .analysisType = analysisType ;
88
88
}
89
89
90
90
/**
@@ -106,17 +106,17 @@ private SamplePreview(ExperimentId experimentId, SampleId sampleId, String sampl
106
106
* preview
107
107
* @param analyte the {@link Analyte} for the {@link Sample} associated with this
108
108
* preview
109
- * @param analysisType the type of analysis to be performed for this {@link Sample}
109
+ * @param analysisMethod the analysis method to be performed for this {@link Sample}
110
110
* @param comment an optional comment pertaining to the associated {@link Sample}
111
111
* @return the sample preview
112
112
*/
113
113
public static SamplePreview create (ExperimentId experimentId , SampleId sampleId ,
114
114
String sampleCode ,
115
115
String batchLabel , String bioReplicateLabel ,
116
116
String sampleLabel , ExperimentalGroup experimentalGroup , String species , String specimen ,
117
- String analyte , String analysisType , String comment ) {
117
+ String analyte , String analysisMethod , String comment ) {
118
118
return new SamplePreview (experimentId , sampleId , sampleCode , batchLabel , bioReplicateLabel ,
119
- sampleLabel , experimentalGroup , species , specimen , analyte , analysisType , comment );
119
+ sampleLabel , experimentalGroup , species , specimen , analyte , analysisMethod , comment );
120
120
}
121
121
122
122
public ExperimentId experimentId () {
@@ -154,9 +154,11 @@ public String specimen() {
154
154
public String analyte () {
155
155
return analyte ;
156
156
}
157
- public String analysisType () {
158
- return analysisType ;
157
+
158
+ public String analysisMethod () {
159
+ return analysisMethod ;
159
160
}
161
+
160
162
public String comment () {
161
163
return comment ;
162
164
}
@@ -181,15 +183,15 @@ public boolean equals(Object o) {
181
183
that .sampleLabel )
182
184
&& Objects .equals (species , that .species ) && Objects .equals (specimen ,
183
185
that .specimen ) && Objects .equals (analyte , that .analyte ) && Objects .equals (
184
- experimentalGroup , that .experimentalGroup ) && Objects .equals (analysisType ,
185
- that .analysisType ) && Objects .equals (comment , that .comment );
186
+ experimentalGroup , that .experimentalGroup ) && Objects .equals (analysisMethod ,
187
+ that .analysisMethod ) && Objects .equals (comment , that .comment );
186
188
}
187
189
188
190
@ Override
189
191
public int hashCode () {
190
192
return Objects .hash (experimentId , sampleCode , sampleId , batchLabel , bioReplicateLabel ,
191
193
sampleLabel ,
192
- species , specimen , analyte , experimentalGroup , analysisType , comment );
194
+ species , specimen , analyte , experimentalGroup , analysisMethod , comment );
193
195
}
194
196
195
197
@ Override
@@ -204,7 +206,7 @@ public String toString() {
204
206
", species='" + species + '\'' +
205
207
", specimen='" + specimen + '\'' +
206
208
", analyte='" + analyte + '\'' +
207
- ", analysisType='" + analysisType + '\'' +
209
+ ", analysisType='" + analysisMethod + '\'' +
208
210
", comment='" + comment + '\'' +
209
211
", conditions=" + experimentalGroup +
210
212
'}' ;
0 commit comments