1
你能請告知我需要把狀態或休眠標準爲is..I我得到一個參數abcsystem現在它的值可以爲空也是參數之一或者它不能零還,但如果它的值不是null,則設置它的價值,因爲它是參數abcystem,因爲它是,請告知如何做到這一點...把休眠或條件標準
Criteria criteria = session.createCriteria(ils.class);
criteria.add(Restrictions.eq("Code", ok.getId()));
//****criteria.add(Restrictions.eq("abcystem", ok.getabcSystem())); // ****criteria to be modified such that abc system can be null or //****we need to set the value of abc system whatever is coming in ok.getabcSystem() in the paremeter abcystem
criteria.add(Restrictions.
criteria.add(Restrictions.eq("tCode", ok.tCode()));
ment = (ils) criteria.uniqueResult();