Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Open Source or Freeware Java Class Generators for DB

Status
Not open for further replies.

tommyc7

Programmer
Feb 3, 2007
33
0
0
US
Does anyone know of any good open source and/or freeware Java code generators?

Specifically, I'm too lazy to create classes that store the data from my DB tables (MySQL). Does anyone know of a program that will read the table meta data and generate a simple class structure with setters and getters, etc.

Thanks
 
Hibernate is what you need. All it needs are some simple XML config files that map your class attributes onto the DB table. It's supposed to be pretty efficient, too...

Steve

[small]"Every program can be reduced by one instruction, and every program has at least one bug. Therefore, any program can be reduced to one instruction which doesn't work." (Object::perlDesignPatterns)[/small]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top