source: ether_eccad/trunk/ECCAD_INTERFACE/WEB-INF/src/org/medias/eccad/persistance/hibernate/domaine/ConcerneId.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.3 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 * ConcerneId generated by hbm2java
7 */
8public class ConcerneId implements java.io.Serializable {
9
10        // Fields   
11
12        private int idProduit;
13
14        private int idReferences;
15
16        // Constructors
17
18        /** default constructor */
19        public ConcerneId() {
20        }
21
22        /** full constructor */
23        public ConcerneId(int idProduit, int idReferences) {
24                this.idProduit = idProduit;
25                this.idReferences = idReferences;
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 getIdReferences() {
38                return this.idReferences;
39        }
40
41        public void setIdReferences(int idReferences) {
42                this.idReferences = idReferences;
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 ConcerneId))
51                        return false;
52                ConcerneId castOther = (ConcerneId) other;
53
54                return (this.getIdProduit() == castOther.getIdProduit())
55                                && (this.getIdReferences() == castOther.getIdReferences());
56        }
57
58        public int hashCode() {
59                int result = 17;
60
61                result = 37 * result + this.getIdProduit();
62                result = 37 * result + this.getIdReferences();
63                return result;
64        }
65
66}
Note: See TracBrowser for help on using the repository browser.