TestShemaExport测试类5.x版的写法是什么
视频用的写法新版hibernate不行
视频用的写法新版hibernate不行
2017-09-22
public class TestStudents {
@Test
public void testShemaExport()
{
ServiceRegistry serviceRegistry=new StandardServiceRegistryBuilder().configure().build();
Metadata metadata = new MetadataSources(serviceRegistry).buildMetadata();
SchemaExport schemaExport = new SchemaExport();
schemaExport.create(EnumSet.of(TargetType.DATABASE), metadata);
}
}
举报