hibernate4.3.x版本中 ServiceRegistryBuilder 已過(guò)時(shí)--"Deprecated. Use StandardServiceRegistryBuilder instead",得用StandardServiceRegistryBuilder,也就是它的父類(lèi)代替。太開(kāi)玩樂(lè)了,兒子廢了,老爸頂上!
服務(wù)注冊(cè)對(duì)象得這么搞:
ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder().applySettings(configuration.getProperties()).build();
服務(wù)注冊(cè)對(duì)象得這么搞:
ServiceRegistry serviceRegistry = new StandardServiceRegistryBuilder().applySettings(configuration.getProperties()).build();