mysql - Query to fetch more than 6500 records in HQL -


i have requirement in project select more 6500 records table. have used select * tablename id in (:list). getting stack overflow error.

however if id list less 6500 records query formed without errors.

also hibernate version 3.3.ga, requirement should not upgrade hibernate version. using current version should write query.

can please me out in this.

thanks in advance

you can use setmaxresult() sinice limit not supported hql

string hql = "select * tablename id in (:list)"; query query = session.createquery(hql); query.setmaxresults(6500); list results = query.list(); 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -