通过引用下面代码可以查看hibernate建表语句
serviceRegistry = new StandardServiceRegistryBuilder().configure().build();
Metadata metadata = new MetadataSources(serviceRegistry).buildMetadata();
SchemaExport export=new SchemaExport();
export.create(EnumSet.of(TargetType.DATABASE), metadata);