public static AccOutGuaPK getSafeObject(AccOutGuaPK id) { if (Hibernate.isInitialized(id)) { if (id instanceof HibernateProxy) return (AccOutGuaPK) ((HibernateProxy) id).getHibernateLazyInitializer().getImplementation(); else return id; } else { if (id == null) return null; else return new AccOutGuaPK(id.getBranch(), id.getRefNo(), id.getNo()); } }
public boolean equals(Object obj) { AccOutGuaPK po = (obj instanceof AccOutGuaPK) ? (AccOutGuaPK) obj : null; return CommonUtil.equals(this, po) && CommonUtil.equals(getBranchId(), po.getBranchId()); }