X-Git-Url: https://git.argeo.org/?a=blobdiff_plain;ds=sidebyside;f=server%2Fruntime%2Forg.argeo.server.jxl%2Fsrc%2Ftest%2Fjava%2Forg%2Fargeo%2Fserver%2Fjxl%2Fdao%2FSimpleObject.java;h=c6ced819f7e1943e74e2b88446ffd4907dbe6e37;hb=490d9907457c43acfa965e7979ce5974bc1ba6ca;hp=f041667893aaf19c0ecac75ade0e4cde08ae1bcf;hpb=868030e8fb739ec314c06c5651159735fa56f375;p=lgpl%2Fargeo-commons.git diff --git a/server/runtime/org.argeo.server.jxl/src/test/java/org/argeo/server/jxl/dao/SimpleObject.java b/server/runtime/org.argeo.server.jxl/src/test/java/org/argeo/server/jxl/dao/SimpleObject.java index f04166789..c6ced819f 100644 --- a/server/runtime/org.argeo.server.jxl/src/test/java/org/argeo/server/jxl/dao/SimpleObject.java +++ b/server/runtime/org.argeo.server.jxl/src/test/java/org/argeo/server/jxl/dao/SimpleObject.java @@ -1,3 +1,19 @@ +/* + * Copyright (C) 2010 Mathieu Baudier + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + package org.argeo.server.jxl.dao; public class SimpleObject { @@ -37,4 +53,15 @@ public class SimpleObject { public void setAnotherObject(OtherObject anotherObject) { this.anotherObject = anotherObject; } + + @Override + public boolean equals(Object obj) { + return string.equals(((SimpleObject) obj).string); + } + + @Override + public int hashCode() { + return string.hashCode(); + } + }