pepelnm wrote:
try something like
Code:
Session session = getSessionInSomeWay(...);
try{
Transaction tx = session.beginTransaction();
session.saveOrUpdate(actionForm);
tx.commit();
} catch(Exception e) {
if(tx != null) {
tx.rollback();
}
throw new Exception(e);
} finally {
session.close();
}
no dice... the sql statement looks like this:
Code:
insert into change_request(title, description, date) values (?, ?, ?)
actually, after doing a select * from change_request, I see the 1 entry. it seems to have worked but the sql is showing question marks.