Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Java, Code Generation, and Persistence Frameworks

Are there any Java code generation persistence frameworks? Something that is "database first" rather than object model first? I know this is probably heresy in the Java world, I'd just like to know if any frameworks like this exist.

I'm more of a .NET guy these days. So on the .NET-side tools like .NET Tiers or CSLA come to mind.

like image 516
BuddyJoe Avatar asked Dec 04 '22 15:12

BuddyJoe


2 Answers

sure, hibernate and netbeans for example can reverse engineering a database. You may be want to look at:

  • Hibernate Tools; site in maintenance
  • netbeans, with recent version of netbeans you can create JPA entities from a JDBC connection

My 2 cents.

like image 104
dfa Avatar answered Dec 26 '22 11:12

dfa


The Apache Cayenne ORM framework is able to reverse engineer a database. See here.

like image 45
Markus Avatar answered Dec 26 '22 12:12

Markus