mirror of
https://github.com/ebean-orm/ebean.git
synced 2026-11-12 22:41:35 +00:00
23 lines
443 B
Java
23 lines
443 B
Java
package org.etest;
|
|
|
|
import java.util.Objects;
|
|
|
|
public class PlainBean {
|
|
|
|
public int id;
|
|
public String name;
|
|
|
|
@Override
|
|
public boolean equals(Object o) {
|
|
if (this == o) return true;
|
|
if (o == null || getClass() != o.getClass()) return false;
|
|
PlainBean plainBean = (PlainBean) o;
|
|
return id == plainBean.id && name.equals(plainBean.name);
|
|
}
|
|
|
|
@Override
|
|
public int hashCode() {
|
|
return Objects.hash(id, name);
|
|
}
|
|
}
|