Session session = getHibernateTemplate().getSessionFactory().openSession();
session.beginTransaction();
String result = session.createSQLQuery("select " + type + ".nextval from dual").uniqueResult().toString();
session.getTransaction().commit();
session.close();
在hibernate调用sequence和session
最新推荐文章于 2021-02-16 08:22:09 发布