摘要:
首先应该配置hibernate.cfg.xml org.hibernate.dialect.Oracle9Dialect hjdbc:oracle:thin:@localhost:1521:orcl chy chy oracle.jdbc.driver.OracleDriver news true true thread save-update 然后再类HibernateSessionFactory调用package hibernate;import org.hibernate.HibernateException;import org.hibernate.Sessio... 阅读全文