Oracleデータベースを使用している場合、次のクエリは休止状態で完全に実行されます.しかし、mysql dbを使用しようとすると、動作しないことを意味します.ファイル mysqlIO.class' のソース。
import org.hibernate.Criteria;
import org.hibernate.Query;
import org.hibernate.Session;
import org.hibernate.Transaction;
import org.hibernate.SessionFactory;
import org.hibernate.criterion.Projections;
import org.hibernate.criterion.Restrictions;
import org.hibernate.criterion.Criterion;
import com.hibernatehelper.HibernatePlugin;
import com.cir.hibernatebean.CIRMTradeCopiesSlab;
Criteria cr = sesInsert.createCriteria(CIRMTradeCopiesSlab.class);
//cr.add(Restrictions.eq("mtcsbrncode","MDS"));
Criterion criterion = Restrictions.eq("mtcsbrncode", "MDS");
cr.add(criterion);
List AgentRecList=cr.list();