source: ether_eccad/trunk/ECCAD_INTERFACE/WEB-INF/src/org/medias/eccad/persistance/hibernate/domaine/ColorIndexId.java @ 68

Last change on this file since 68 was 68, checked in by cbipsl, 14 years ago

commit v1 eccad

  • Property svn:executable set to *
File size: 1.7 KB
Line 
1package org.medias.eccad.persistance.hibernate.domaine;
2
3// Generated 1 Juin 2007 15:03:29 by Hibernate Tools 3.2.0.beta7
4
5/**
6 * ColorIndexId generated by hbm2java
7 */
8public class ColorIndexId implements java.io.Serializable {
9
10        // Fields   
11
12        private int cmId;
13
14        private int colId;
15
16        private double ciMax;
17
18        private double ciMin;
19
20        // Constructors
21
22        /** default constructor */
23        public ColorIndexId() {
24        }
25
26        /** full constructor */
27        public ColorIndexId(int cmId, int colId, double ciMax, double ciMin) {
28                this.cmId = cmId;
29                this.colId = colId;
30                this.ciMax = ciMax;
31                this.ciMin = ciMin;
32        }
33
34        // Property accessors
35        public int getCmId() {
36                return this.cmId;
37        }
38
39        public void setCmId(int cmId) {
40                this.cmId = cmId;
41        }
42
43        public int getColId() {
44                return this.colId;
45        }
46
47        public void setColId(int colId) {
48                this.colId = colId;
49        }
50
51        public double getCiMax() {
52                return this.ciMax;
53        }
54
55        public void setCiMax(double ciMax) {
56                this.ciMax = ciMax;
57        }
58
59        public double getCiMin() {
60                return this.ciMin;
61        }
62
63        public void setCiMin(double ciMin) {
64                this.ciMin = ciMin;
65        }
66
67        public boolean equals(Object other) {
68                if ((this == other))
69                        return true;
70                if ((other == null))
71                        return false;
72                if (!(other instanceof ColorIndexId))
73                        return false;
74                ColorIndexId castOther = (ColorIndexId) other;
75
76                return (this.getCmId() == castOther.getCmId())
77                                && (this.getColId() == castOther.getColId())
78                                && (this.getCiMax() == castOther.getCiMax())
79                                && (this.getCiMin() == castOther.getCiMin());
80        }
81
82        public int hashCode() {
83                int result = 17;
84
85                result = 37 * result + this.getCmId();
86                result = 37 * result + this.getColId();
87                result = 37 * result + (int) this.getCiMax();
88                result = 37 * result + (int) this.getCiMin();
89                return result;
90        }
91
92}
Note: See TracBrowser for help on using the repository browser.