Retrieving database meta information using Java EE/JPA
-
07-06-2021 - |
Pergunta
I need to be able to retrieve database information from any type of database and return this information via a restful service (using Glassfish and JAX-RS).
The information I need includes:
- Database names
- Table names
- Column names and properties
I am currently looking into DatabaseMetaData and seems to provide what I require.
However, I wanted to check if there are alternatives I should be considering (such as JPA2).
Any pointers would be appreciated
Solução
I settled on using SchemaCrawler. It is highly configurable and provides me with everything I need.
Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow