Last change
on this file since 848 was
70,
checked in by cbipsl, 14 years ago
|
maj eccad V3.2
|
-
Property svn:executable set to
*
|
File size:
1.3 KB
|
Line | |
---|
1 | package 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 | * ParamColorId generated by hbm2java |
---|
7 | */ |
---|
8 | public class ParamColorId implements java.io.Serializable { |
---|
9 | |
---|
10 | // Fields |
---|
11 | |
---|
12 | /** |
---|
13 | * |
---|
14 | */ |
---|
15 | private static final long serialVersionUID = 1L; |
---|
16 | |
---|
17 | private int cmId; |
---|
18 | |
---|
19 | private int idParam; |
---|
20 | |
---|
21 | // Constructors |
---|
22 | |
---|
23 | /** default constructor */ |
---|
24 | public ParamColorId() { |
---|
25 | } |
---|
26 | |
---|
27 | /** full constructor */ |
---|
28 | public ParamColorId(int cmId, int idParam) { |
---|
29 | this.cmId = cmId; |
---|
30 | this.idParam = idParam; |
---|
31 | } |
---|
32 | |
---|
33 | // Property accessors |
---|
34 | public int getCmId() { |
---|
35 | return this.cmId; |
---|
36 | } |
---|
37 | |
---|
38 | public void setCmId(int cmId) { |
---|
39 | this.cmId = cmId; |
---|
40 | } |
---|
41 | |
---|
42 | public int getIdParam() { |
---|
43 | return this.idParam; |
---|
44 | } |
---|
45 | |
---|
46 | public void setIdParam(int idParam) { |
---|
47 | this.idParam = idParam; |
---|
48 | } |
---|
49 | |
---|
50 | public boolean equals(Object other) { |
---|
51 | if ((this == other)) |
---|
52 | return true; |
---|
53 | if ((other == null)) |
---|
54 | return false; |
---|
55 | if (!(other instanceof ParamColorId)) |
---|
56 | return false; |
---|
57 | ParamColorId castOther = (ParamColorId) other; |
---|
58 | |
---|
59 | return (this.getCmId() == castOther.getCmId()) |
---|
60 | && (this.getIdParam() == castOther.getIdParam()); |
---|
61 | } |
---|
62 | |
---|
63 | public int hashCode() { |
---|
64 | int result = 17; |
---|
65 | |
---|
66 | result = 37 * result + this.getCmId(); |
---|
67 | result = 37 * result + this.getIdParam(); |
---|
68 | return result; |
---|
69 | } |
---|
70 | |
---|
71 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.