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.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 | * FournitId generated by hbm2java |
---|
7 | */ |
---|
8 | public class FournitId implements java.io.Serializable { |
---|
9 | |
---|
10 | // Fields |
---|
11 | |
---|
12 | private int idProduit; |
---|
13 | |
---|
14 | private int idOrganisme; |
---|
15 | |
---|
16 | // Constructors |
---|
17 | |
---|
18 | /** default constructor */ |
---|
19 | public FournitId() { |
---|
20 | } |
---|
21 | |
---|
22 | /** full constructor */ |
---|
23 | public FournitId(int idProduit, int idOrganisme) { |
---|
24 | this.idProduit = idProduit; |
---|
25 | this.idOrganisme = idOrganisme; |
---|
26 | } |
---|
27 | |
---|
28 | // Property accessors |
---|
29 | public int getIdProduit() { |
---|
30 | return this.idProduit; |
---|
31 | } |
---|
32 | |
---|
33 | public void setIdProduit(int idProduit) { |
---|
34 | this.idProduit = idProduit; |
---|
35 | } |
---|
36 | |
---|
37 | public int getIdOrganisme() { |
---|
38 | return this.idOrganisme; |
---|
39 | } |
---|
40 | |
---|
41 | public void setIdOrganisme(int idOrganisme) { |
---|
42 | this.idOrganisme = idOrganisme; |
---|
43 | } |
---|
44 | |
---|
45 | public boolean equals(Object other) { |
---|
46 | if ((this == other)) |
---|
47 | return true; |
---|
48 | if ((other == null)) |
---|
49 | return false; |
---|
50 | if (!(other instanceof FournitId)) |
---|
51 | return false; |
---|
52 | FournitId castOther = (FournitId) other; |
---|
53 | |
---|
54 | return (this.getIdProduit() == castOther.getIdProduit()) |
---|
55 | && (this.getIdOrganisme() == castOther.getIdOrganisme()); |
---|
56 | } |
---|
57 | |
---|
58 | public int hashCode() { |
---|
59 | int result = 17; |
---|
60 | |
---|
61 | result = 37 * result + this.getIdProduit(); |
---|
62 | result = 37 * result + this.getIdOrganisme(); |
---|
63 | return result; |
---|
64 | } |
---|
65 | |
---|
66 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.