@JFinal 您好,这个我知道但是我在model中重写了对象的hashCode方法无法生效下面是代码: /** * Generated by JFinal. */ @SuppressWarnings("serial") public class AsColumn extends BaseAsColumn { public static final AsColumn dao = new AsColumn().dao(); public static final String SEQ_NEXTVAL = "SEQ_COLUMN.nextval"; @Override public int hashCode() { String name = getName(); return name.hashCode(); } @Override public boolean equals(Object o) { String name = getName(); AsColumn c =(AsColumn) o; return AsColumn.class.getName().equals(c.getName()); } }
hashCode() {
return super.hashCode();
}
equals 也差不多