View Javadoc
1   // license-header java merge-point
2   //
3   // Attention: Generated code! Do not modify by hand!
4   // Generated by: hibernate/HibernateEntity.vsl in andromda-hibernate-cartridge.
5   //
6   package fr.ifremer.quadrige2.core.dao.system;
7   
8   /*-
9    * #%L
10   * Quadrige2 Core :: Server API
11   * %%
12   * Copyright (C) 2017 Ifremer
13   * %%
14   * This program is free software: you can redistribute it and/or modify
15   * it under the terms of the GNU Affero General Public License as published by
16   * the Free Software Foundation, either version 3 of the License, or
17   * (at your option) any later version.
18   * 
19   * This program is distributed in the hope that it will be useful,
20   * but WITHOUT ANY WARRANTY; without even the implied warranty of
21   * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
22   * GNU General Public License for more details.
23   * 
24   * You should have received a copy of the GNU Affero General Public License
25   * along with this program.  If not, see <http://www.gnu.org/licenses/>.
26   * #L%
27   */
28  
29  import java.io.Serializable;
30  import java.util.Date;
31  
32  /**
33   * Rapport des fiches d'anomalies et d'évolutions gérées dans l'outil Mantis.
34   * Cette table constitue la base des outils de présentation et de synthèse des demandes pour la
35   * cellule d'administration de Quadrige
36   */
37  // HibernateEntity.vsl annotations merge-point
38  public abstract class BugReport
39      implements Serializable, Comparable<BugReport>
40  {
41      /**
42       * The serial version UID of this class. Needed for serialization.
43       */
44      private static final long serialVersionUID = -2116166496329761755L;
45  
46      // Generate 14 attributes
47      private Integer bugId;
48  
49      /**
50       * Identifiant de la fiche dans le système Mantis
51       * @return this.bugId Integer
52       */
53      public Integer getBugId()
54      {
55          return this.bugId;
56      }
57  
58      /**
59       * Identifiant de la fiche dans le système Mantis
60       * @param bugIdIn Integer
61       */
62      public void setBugId(Integer bugIdIn)
63      {
64          this.bugId = bugIdIn;
65      }
66  
67      private String bugSummary;
68  
69      /**
70       * Résumé de la fiche
71       * @return this.bugSummary String
72       */
73      public String getBugSummary()
74      {
75          return this.bugSummary;
76      }
77  
78      /**
79       * Résumé de la fiche
80       * @param bugSummaryIn String
81       */
82      public void setBugSummary(String bugSummaryIn)
83      {
84          this.bugSummary = bugSummaryIn;
85      }
86  
87      private String bugDescription;
88  
89      /**
90       * Description de la fiche
91       * @return this.bugDescription String
92       */
93      public String getBugDescription()
94      {
95          return this.bugDescription;
96      }
97  
98      /**
99       * Description de la fiche
100      * @param bugDescriptionIn String
101      */
102     public void setBugDescription(String bugDescriptionIn)
103     {
104         this.bugDescription = bugDescriptionIn;
105     }
106 
107     private String bugReporterName;
108 
109     /**
110      * Nom du rapporteur
111      * @return this.bugReporterName String
112      */
113     public String getBugReporterName()
114     {
115         return this.bugReporterName;
116     }
117 
118     /**
119      * Nom du rapporteur
120      * @param bugReporterNameIn String
121      */
122     public void setBugReporterName(String bugReporterNameIn)
123     {
124         this.bugReporterName = bugReporterNameIn;
125     }
126 
127     private String bugStatus;
128 
129     /**
130      * Etat de la fiche
131      * @return this.bugStatus String
132      */
133     public String getBugStatus()
134     {
135         return this.bugStatus;
136     }
137 
138     /**
139      * Etat de la fiche
140      * @param bugStatusIn String
141      */
142     public void setBugStatus(String bugStatusIn)
143     {
144         this.bugStatus = bugStatusIn;
145     }
146 
147     private String bugCategory;
148 
149     /**
150      * Catégorie de la fiche (anomalie ou évolution)
151      * @return this.bugCategory String
152      */
153     public String getBugCategory()
154     {
155         return this.bugCategory;
156     }
157 
158     /**
159      * Catégorie de la fiche (anomalie ou évolution)
160      * @param bugCategoryIn String
161      */
162     public void setBugCategory(String bugCategoryIn)
163     {
164         this.bugCategory = bugCategoryIn;
165     }
166 
167     private String bugPriority;
168 
169     /**
170      * Priorité de la fiche
171      * @return this.bugPriority String
172      */
173     public String getBugPriority()
174     {
175         return this.bugPriority;
176     }
177 
178     /**
179      * Priorité de la fiche
180      * @param bugPriorityIn String
181      */
182     public void setBugPriority(String bugPriorityIn)
183     {
184         this.bugPriority = bugPriorityIn;
185     }
186 
187     private String bugSeverity;
188 
189     /**
190      * Sévérité de la fiche
191      * @return this.bugSeverity String
192      */
193     public String getBugSeverity()
194     {
195         return this.bugSeverity;
196     }
197 
198     /**
199      * Sévérité de la fiche
200      * @param bugSeverityIn String
201      */
202     public void setBugSeverity(String bugSeverityIn)
203     {
204         this.bugSeverity = bugSeverityIn;
205     }
206 
207     private Date bugSubmittedDate;
208 
209     /**
210      * Date de soumission de la fiche
211      * @return this.bugSubmittedDate Date
212      */
213     public Date getBugSubmittedDate()
214     {
215         return this.bugSubmittedDate;
216     }
217 
218     /**
219      * Date de soumission de la fiche
220      * @param bugSubmittedDateIn Date
221      */
222     public void setBugSubmittedDate(Date bugSubmittedDateIn)
223     {
224         this.bugSubmittedDate = bugSubmittedDateIn;
225     }
226 
227     private Date bugUpdatedDate;
228 
229     /**
230      * Date de mise à jour de la fiche
231      * @return this.bugUpdatedDate Date
232      */
233     public Date getBugUpdatedDate()
234     {
235         return this.bugUpdatedDate;
236     }
237 
238     /**
239      * Date de mise à jour de la fiche
240      * @param bugUpdatedDateIn Date
241      */
242     public void setBugUpdatedDate(Date bugUpdatedDateIn)
243     {
244         this.bugUpdatedDate = bugUpdatedDateIn;
245     }
246 
247     private Date bugWishedDate;
248 
249     /**
250      * Date souhaitée pour la mise en oeuvre de la fiche
251      * @return this.bugWishedDate Date
252      */
253     public Date getBugWishedDate()
254     {
255         return this.bugWishedDate;
256     }
257 
258     /**
259      * Date souhaitée pour la mise en oeuvre de la fiche
260      * @param bugWishedDateIn Date
261      */
262     public void setBugWishedDate(Date bugWishedDateIn)
263     {
264         this.bugWishedDate = bugWishedDateIn;
265     }
266 
267     private Date bugClosedDate;
268 
269     /**
270      * Date de fermeture de la fiche
271      * @return this.bugClosedDate Date
272      */
273     public Date getBugClosedDate()
274     {
275         return this.bugClosedDate;
276     }
277 
278     /**
279      * Date de fermeture de la fiche
280      * @param bugClosedDateIn Date
281      */
282     public void setBugClosedDate(Date bugClosedDateIn)
283     {
284         this.bugClosedDate = bugClosedDateIn;
285     }
286 
287     private String bugProductVersion;
288 
289     /**
290      * Version du produit sur laquelle la fiche a été établie
291      * @return this.bugProductVersion String
292      */
293     public String getBugProductVersion()
294     {
295         return this.bugProductVersion;
296     }
297 
298     /**
299      * Version du produit sur laquelle la fiche a été établie
300      * @param bugProductVersionIn String
301      */
302     public void setBugProductVersion(String bugProductVersionIn)
303     {
304         this.bugProductVersion = bugProductVersionIn;
305     }
306 
307     private String bugFixedVersion;
308 
309     /**
310      * Version du produit sur laquelle la fiche a été réalisée
311      * @return this.bugFixedVersion String
312      */
313     public String getBugFixedVersion()
314     {
315         return this.bugFixedVersion;
316     }
317 
318     /**
319      * Version du produit sur laquelle la fiche a été réalisée
320      * @param bugFixedVersionIn String
321      */
322     public void setBugFixedVersion(String bugFixedVersionIn)
323     {
324         this.bugFixedVersion = bugFixedVersionIn;
325     }
326 
327     // Generate 0 associations
328     /**
329      * Returns <code>true</code> if the argument is an BugReport instance and all identifiers for this entity
330      * equal the identifiers of the argument entity. Returns <code>false</code> otherwise.
331      */
332     @Override
333     public boolean equals(Object object)
334     {
335         if (this == object)
336         {
337             return true;
338         }
339         if (!(object instanceof BugReport))
340         {
341             return false;
342         }
343         final BugReport that = (BugReport)object;
344         if (this.bugId == null || that.getBugId() == null || !this.bugId.equals(that.getBugId()))
345         {
346             return false;
347         }
348         return true;
349     }
350 
351     /**
352      * Returns a hash code based on this entity's identifiers.
353      */
354     @Override
355     public int hashCode()
356     {
357         int hashCode = 0;
358         hashCode = 29 * hashCode + (this.bugId == null ? 0 : this.bugId.hashCode());
359 
360         return hashCode;
361     }
362 
363     /**
364      * Constructs new instances of {@link BugReport}.
365      */
366     public static final class Factory
367     {
368         /**
369          * Constructs a new instance of {@link BugReport}.
370          * @return new BugReportImpl()
371          */
372         public static BugReport newInstance()
373         {
374             return new BugReportImpl();
375         }
376 
377 
378         /**
379          * Constructs a new instance of {@link BugReport}, taking all possible properties
380          * (except the identifier(s))as arguments.
381          * @param bugSummary String
382          * @param bugDescription String
383          * @param bugReporterName String
384          * @param bugStatus String
385          * @param bugCategory String
386          * @param bugPriority String
387          * @param bugSeverity String
388          * @param bugSubmittedDate Date
389          * @param bugUpdatedDate Date
390          * @param bugWishedDate Date
391          * @param bugClosedDate Date
392          * @param bugProductVersion String
393          * @param bugFixedVersion String
394          * @return newInstance BugReport
395          */
396         public static BugReport newInstance(String bugSummary, String bugDescription, String bugReporterName, String bugStatus, String bugCategory, String bugPriority, String bugSeverity, Date bugSubmittedDate, Date bugUpdatedDate, Date bugWishedDate, Date bugClosedDate, String bugProductVersion, String bugFixedVersion)
397         {
398             final BugReport entity = new BugReportImpl();
399             entity.setBugSummary(bugSummary);
400             entity.setBugDescription(bugDescription);
401             entity.setBugReporterName(bugReporterName);
402             entity.setBugStatus(bugStatus);
403             entity.setBugCategory(bugCategory);
404             entity.setBugPriority(bugPriority);
405             entity.setBugSeverity(bugSeverity);
406             entity.setBugSubmittedDate(bugSubmittedDate);
407             entity.setBugUpdatedDate(bugUpdatedDate);
408             entity.setBugWishedDate(bugWishedDate);
409             entity.setBugClosedDate(bugClosedDate);
410             entity.setBugProductVersion(bugProductVersion);
411             entity.setBugFixedVersion(bugFixedVersion);
412             return entity;
413         }
414     }
415 
416     /**
417      * @see Comparable#compareTo
418      */
419     public int compareTo(BugReport o)
420     {
421         int cmp = 0;
422         if (this.getBugId() != null)
423         {
424             cmp = this.getBugId().compareTo(o.getBugId());
425         }
426         else
427         {
428             if (this.getBugSummary() != null)
429             {
430                 cmp = (cmp != 0 ? cmp : this.getBugSummary().compareTo(o.getBugSummary()));
431             }
432             if (this.getBugDescription() != null)
433             {
434                 cmp = (cmp != 0 ? cmp : this.getBugDescription().compareTo(o.getBugDescription()));
435             }
436             if (this.getBugReporterName() != null)
437             {
438                 cmp = (cmp != 0 ? cmp : this.getBugReporterName().compareTo(o.getBugReporterName()));
439             }
440             if (this.getBugStatus() != null)
441             {
442                 cmp = (cmp != 0 ? cmp : this.getBugStatus().compareTo(o.getBugStatus()));
443             }
444             if (this.getBugCategory() != null)
445             {
446                 cmp = (cmp != 0 ? cmp : this.getBugCategory().compareTo(o.getBugCategory()));
447             }
448             if (this.getBugPriority() != null)
449             {
450                 cmp = (cmp != 0 ? cmp : this.getBugPriority().compareTo(o.getBugPriority()));
451             }
452             if (this.getBugSeverity() != null)
453             {
454                 cmp = (cmp != 0 ? cmp : this.getBugSeverity().compareTo(o.getBugSeverity()));
455             }
456             if (this.getBugSubmittedDate() != null)
457             {
458                 cmp = (cmp != 0 ? cmp : this.getBugSubmittedDate().compareTo(o.getBugSubmittedDate()));
459             }
460             if (this.getBugUpdatedDate() != null)
461             {
462                 cmp = (cmp != 0 ? cmp : this.getBugUpdatedDate().compareTo(o.getBugUpdatedDate()));
463             }
464             if (this.getBugWishedDate() != null)
465             {
466                 cmp = (cmp != 0 ? cmp : this.getBugWishedDate().compareTo(o.getBugWishedDate()));
467             }
468             if (this.getBugClosedDate() != null)
469             {
470                 cmp = (cmp != 0 ? cmp : this.getBugClosedDate().compareTo(o.getBugClosedDate()));
471             }
472             if (this.getBugProductVersion() != null)
473             {
474                 cmp = (cmp != 0 ? cmp : this.getBugProductVersion().compareTo(o.getBugProductVersion()));
475             }
476             if (this.getBugFixedVersion() != null)
477             {
478                 cmp = (cmp != 0 ? cmp : this.getBugFixedVersion().compareTo(o.getBugFixedVersion()));
479             }
480         }
481         return cmp;
482     }
483 // HibernateEntity.vsl merge-point
484 // BugReport.java merge-point
485 }