Oracle序列名:test_seq
public String getNextSeq()
{
String sql = "select test_seq.nextval from dual";
Session session = this.getSessionFactory().getCurrentSession();
return session.createSQLQuery(sql).list().get(0).toString();
}