I'm working with an Oracle database and I'm trying to create a system in Java that will read the database's existing schema and triggers; then create an in-memory local database that we can use for testing purposes. I know that I can get the schema information from the connection object with JDBC, but I'm not sure how to get the trigger information.
I know that I can build a database with hibernate by filling out the tables in the cnf.xml file, but I want to make it an automatic process because the database will most likely change over time.
Are there any tools or plugins that anyone knows of that does this already so I don't have to reinvent the wheel?
Edit: Not sure why this is being marked as duplicate. Clearly I asked for more than just getting triggers of an existing database.