Subject | Re: [Firebird-Java] Generate classes from database |
---|---|
Author | Paul Nichols |
Post date | 2019-06-23T17:19:15Z |
What do you mean by "reverse engineer"?
The Database could be reverse engineered using a tool like DBeaver or by using DatabasetMetaData and ResultSetMetaData using standard JDBC.
You could also use the jar files in Squirrel SQL to do this, without having to work from scratch.
If you are looking to reverse engineer a Java application and the database classes (like JPA, Hibernate, Spring Data), then there are many tools to help you do this, First step, would be to reverse the Java Code itself, put this into a project, and then use the IDE tools in Eclipse, IntelliJ, Netbeans to assist with creating an ER diagram.
If you are looking to build a CRUD application from an existing database, then you can do this with tools like Spring Roo.
On Sunday, June 23, 2019, 12:15:38 PM EDT, pablos@... [Firebird-Java] <Firebird-Java@yahoogroups.com> wrote:
Hi there.
It happens that some years ago I, somehow, managed to "reverse engeneered" a database for a project (and had a time to re-annonate the classes manually). That generated all tables and views.
It works nicely .
I'm in the same situtation now with a simple application, but I fail to remember how I did it.
Tried everything at hand, but no way : using a maven project, a jpa faceted project, DTP jars ...
If someone has such task fresh on head, please advice.
Thank you
Pablo