Hibernate ace, we will, when doing project to upgrade to hibernate 5 but hiberante3 hibernate3, through the Configuration. The getTableMappings get all the table structure, but by the time hibernate5, this method does not, there is no alternative, I tried the following method, the result is empty,
Be sad etStandardServiceRegistryBuilder chtistina georgina rossetti.british poetess StandardServiceRegistry standardRegistry=(.) the build ();
Metadata, Metadata=https://bbs.csdn.net/topics/new MetadataSources (standardRegistry). GetMetadataBuilder (). The build ();
Java. Util. Collection
TableBindings=metaData. CollectTableMappings ();