예제 #1
0
 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());
   }
 }
예제 #2
0
 public boolean equals(Object obj) {
   AccOutGuaPK po = (obj instanceof AccOutGuaPK) ? (AccOutGuaPK) obj : null;
   return CommonUtil.equals(this, po) && CommonUtil.equals(getBranchId(), po.getBranchId());
 }