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.dao.technical.model.IUpdateDateEntityBean;
28  import net.sumaris.core.vo.administration.user.DepartmentVO;
29  import net.sumaris.core.vo.referential.MetierVO;
30  import org.apache.commons.lang3.builder.ToStringBuilder;
31  import org.apache.commons.lang3.builder.ToStringStyle;
32  
33  import java.util.Date;
34  import java.util.List;
35  import java.util.Map;
36  
37  @Data
38  @FieldNameConstants
39  public class OperationVO implements IUpdateDateEntityBean<Integer, Date> {
40  
41      private Integer id;
42      private Integer rankOrderOnPeriod;
43      private Date updateDate;
44      private Date controlDate;
45      private Date validationDate;
46      private Integer qualityFlagId;
47      private DepartmentVO recorderDepartment;
48      private Date startDateTime;
49      private Date endDateTime;
50      private Date fishingStartDateTime;
51      private Date fishingEndDateTime;
52      private Boolean hasCatch;
53      private String comments;
54  
55      private MetierVO metier;
56  
57      private TripVO trip;
58      private Integer tripId;
59  
60      private PhysicalGearVO physicalGear;
61      private Integer physicalGearId;
62  
63      private List<VesselPositionVO> positions;
64  
65      private List<MeasurementVO> measurements;
66      private Map<Integer, String> measurementValues;
67  
68      private List<MeasurementVO> gearMeasurements;
69      private Map<Integer, String> gearMeasurementValues;
70  
71      private List<SampleVO> samples;
72  
73      private BatchVO catchBatch;
74      private List<BatchVO> batches;
75  
76      public String toString() {
77          return ToStringBuilder.reflectionToString(this, ToStringStyle.SHORT_PREFIX_STYLE);
78      }
79  }