Hi,
Iam trying to use pagenation by Query object and its setMaxRows,
setFirstRow. I have a block of code like this
String oql = FIND_BY_TEAM_OQL;
Session sess = null;
try {
sess = basePersistence.getSessionFactory().openSession();
uery
, numbered from 0.
val - the possibly-null parameter value
type - the Hibernate type
Thanks
Chandra
-Original Message-
From: Chandrasekhar Ambadipudi
Sent: Thursday, October 23, 2003 1:07 AM
To: 'Gavin King'; Chandrasekhar Ambadipudi
Cc: '[EMAIL
I have a transaction like this
Transaction tx = sess.beginTransaction();
sess.save(obj)
sess.connection() // and one prepared
statment execution here
sess.update(obj1)
Thanks, it worked.
-Original Message-
From: Gavin King [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 10, 2003 11:21 AM
To: Chandrasekhar Ambadipudi
Cc: '[EMAIL PROTECTED]'
Subject: Re: [Hibernate] Question on Session.connection
Just call sess.flush() ... you can call it at any