我是照着您教的做的,百度了下网上都说是ertity导入的问题,但是这个根本没有entity的事啊。请问下是为什么
能贴下具体代码吗
点个赞
@Before
public void init(){
StandardServiceRegistry standardRegistry = new StandardServiceRegistryBuilder()
.configure()
.build();
Metadata metadata = new MetadataSources( standardRegistry ).getMetadataBuilder().applyImplicitNamingStrategy( ImplicitNamingStrategyJpaCompliantImpl.INSTANCE ).build();
sf = metadata.getSessionFactoryBuilder().build();
s=sf.openSession();
t=s.beginTransaction();
}