1.引入hibernate-core.jar
2.java代码
public void meth{ Session session = sessionFactory.openSession(); Transaction tr = session.beginTransaction(); //1.创建Customer对象 //2.调用Session的save()方法,将Customer对象持久化 session.save(jbpmTaskInherit); tr.commit(); session.close(); }