1.1 --- a/java/HrisniciSpameri/src/java/cz/frantovo/hrisniciSpameri/dto/Cil.java Sun Mar 01 01:08:24 2009 +0100
1.2 +++ b/java/HrisniciSpameri/src/java/cz/frantovo/hrisniciSpameri/dto/Cil.java Sun Mar 01 13:04:10 2009 +0100
1.3 @@ -65,4 +65,25 @@
1.4
1.5 public Cil() {
1.6 }
1.7 +
1.8 + @Override
1.9 + public boolean equals(Object obj) {
1.10 + if (obj instanceof Cil) {
1.11 + Cil c = (Cil) obj;
1.12 + return c.getId() == getId();
1.13 + } else {
1.14 + return false;
1.15 + }
1.16 + }
1.17 +
1.18 + @Override
1.19 + public int hashCode() {
1.20 + int hash = 5;
1.21 + hash = 67 * hash + this.id;
1.22 + hash = 67 * hash + (this.nazev != null ? this.nazev.hashCode() : 0);
1.23 + hash = 67 * hash + (this.url != null ? this.url.hashCode() : 0);
1.24 + hash = 67 * hash + (this.selekt != null ? this.selekt.hashCode() : 0);
1.25 + hash = 67 * hash + (this.databaze != null ? this.databaze.hashCode() : 0);
1.26 + return hash;
1.27 + }
1.28 }