In hibernate 5 the classes have changed to retrieve DatabaseMetadata, with DataBaseInformationImpl, but in those changes, there is no specific method that describes how to get DataBaseMetadata, through DatabaseMetadata I want to retrieve TableMetadata. How can I achieve all this ? Or else is there any other alternative/annotations by which I can get DatabaseMetadata & TableMetadata ?
TableMetadata tableInfo = meta.getTableMetadata(
table.getName(),
( table.getSchema() == null ) ? defaultSchema : table.getSchema(),
( table.getCatalog() == null ) ? defaultCatalog : table.getCatalog(),
table.isQuoted());