个人感觉对照关系:
DataSource ------------------- SessionFactory
Connection ------------------- Session
(Prepare)Statement ------------------- Transaction
DataSource ------------------- SessionFactory
Connection ------------------- Session
(Prepare)Statement ------------------- Transaction
2017-07-02
@D明日边缘 我也复制了你的代码。。。。搞得我一天都没弄好,差点把电脑砸了 ,我只想对你说 connection好好拼,别再错了。。。。
2017-07-01
通过hibernate操纵数据,库,,其实hibernate把对对象的操纵编程sql语句,,,所以框架的创造者都是mysql兼java大神。。
2017-06-30
在5版本的Hibernate中,buildServiceReguistry()方法被替换了,用如下方法:
ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder().applySettings(conf.getProperties()).build();
ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder().applySettings(conf.getProperties()).build();
2017-06-30
Error executing DDL via JDBC Statement
check the manual that corresponds to your MySQL server version for the right syntax to use near 'type=MyISAM' at line 8
我用的MySQL版本是5.7.X
设置成 org.hibernate.dialect.MySQL5InnoDBDialect 后终于成功了。
check the manual that corresponds to your MySQL server version for the right syntax to use near 'type=MyISAM' at line 8
我用的MySQL版本是5.7.X
设置成 org.hibernate.dialect.MySQL5InnoDBDialect 后终于成功了。
2017-06-29
Error executing DDL via JDBC Statement
check the manual that corresponds to your MySQL server version for the right syntax to use near 'type=MyISAM' at line 8
我用的MySQL版本是5.7.X
设置成 org.hibernate.dialect.MySQL5InnoDBDialect 后终于成功了。
check the manual that corresponds to your MySQL server version for the right syntax to use near 'type=MyISAM' at line 8
我用的MySQL版本是5.7.X
设置成 org.hibernate.dialect.MySQL5InnoDBDialect 后终于成功了。
2017-06-29
Error executing DDL via JDBC Statement
check the manual that corresponds to your MySQL server version for the right syntax to use near 'type=MyISAM' at line 8
我用的MySQL版本是5.7.X
设置成 org.hibernate.dialect.MySQL5InnoDBDialect 后终于成功了。
check the manual that corresponds to your MySQL server version for the right syntax to use near 'type=MyISAM' at line 8
我用的MySQL版本是5.7.X
设置成 org.hibernate.dialect.MySQL5InnoDBDialect 后终于成功了。
2017-06-29