session.saveOrUpdate(item1);
ItemIF item2 = builder.createItem(channel, "Item 2 for " + chanName,
"Second in line", new URL("http://www.sf1.net"));
session.saveOrUpdate(item2);
session.saveOrUpdate(channel);
tx.commit();
chId = (int) channel.getId();
}
catch (HibernateException he) {
logger.warn("trying to rollback the transaction");
if (tx != null) tx.rollback();