0

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());
  • 1
    This might help to get started - https://stackoverflow.com/questions/10607196/how-to-get-database-metadata-from-entity-manager – Nayan Wadekar Nov 21 '22 at 06:23

0 Answers0