View Javadoc
1   package net.sumaris.core.vo.data;
2   
3   /*-
4    * #%L
5    * SUMARiS:: Core
6    * %%
7    * Copyright (C) 2018 SUMARiS Consortium
8    * %%
9    * This program is free software: you can redistribute it and/or modify
10   * it under the terms of the GNU General Public License as
11   * published by the Free Software Foundation, either version 3 of the
12   * License, or (at your option) any later version.
13   * 
14   * This program is distributed in the hope that it will be useful,
15   * but WITHOUT ANY WARRANTY; without even the implied warranty of
16   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17   * GNU General Public License for more details.
18   * 
19   * You should have received a copy of the GNU General Public
20   * License along with this program.  If not, see
21   * <http://www.gnu.org/licenses/gpl-3.0.html>.
22   * #L%
23   */
24  
25  import lombok.Data;
26  import lombok.experimental.FieldNameConstants;
27  import net.sumaris.core.model.data.IWithRecorderPersonEntity;
28  import net.sumaris.core.vo.administration.programStrategy.ProgramVO;
29  import net.sumaris.core.vo.administration.user.DepartmentVO;
30  import net.sumaris.core.vo.administration.user.PersonVO;
31  import net.sumaris.core.vo.referential.ReferentialVO;
32  
33  import java.util.Date;
34  import java.util.List;
35  import java.util.Map;
36  
37  @Data
38  @FieldNameConstants
39  public class SampleVO implements  IRootDataVO<Integer>,
40          IWithRecorderPersonEntity<Integer, PersonVO> {
41  
42      private Integer id;
43      private String comments;
44      private Date creationDate;
45      private Date updateDate;
46      private Date controlDate;
47      private Date validationDate;
48      private Date qualificationDate;
49      private String qualificationComments;
50      private Integer qualityFlagId;
51      private DepartmentVO recorderDepartment;
52      private PersonVO recorderPerson;
53  
54      private ProgramVO program;
55      private String label;
56      private Date sampleDate;
57      private Integer rankOrder;
58      private Integer individualCount;
59      private Double size;
60      private String sizeUnit;
61      private ReferentialVO matrix;
62      private ReferentialVO taxonGroup;
63      private ReferentialVO taxonName;
64  
65      private SampleVO parent;
66      private Integer parentId;
67      private List<SampleVO> children;
68  
69      private BatchVO batch;
70      private Integer batchId;
71      private OperationVO operation;
72      private Integer operationId;
73      private LandingVO landing;
74      private Integer landingId;
75  
76      private List<MeasurementVO> measurements; // sample_measurement
77      private Map<Integer, String> measurementValues; // sample_measurement
78  
79      public String toString() {
80          return new StringBuilder().append("SampleVO(")
81                  .append("id=").append(id)
82                  .append(",label=").append(label)
83                  .append(")").toString();
84      }
85  }