at org.hibernate.engine.jdbc.JdbcSupportLoader.useContextualLobCreation(JdbcSupportLoader.java:78)
at org.hibernate.engine.jdbc.JdbcSupportLoader.loadJdbcSupport(JdbcSupportLoader.java:52)
at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:118)
at org.hibernate.cfg.Configuration.buildSettingsInternal(Configuration.java:2863)
at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:2859)
at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1870)
at com.hibernarte.test.PepoleTest.main(PepoleTest.java:24)
部分代码如下:
配置文件
>
映射文件
测试类
public class PepoleTest {
public static void main(String[] args) throws Exception{
Configuration conf = new Configuration().configure();
SessionFactory sf = conf.buildSessionFactory();
Session sess = sf.openSession();
Transaction t = sess.beginTransaction();
Pepole p = new Pepole();
p.setId("1");
p.setName("1");
p.setAge(1);
p.setSex("male");
sess.save(p);
t.commit();
sess.close();
}
}