6

GitHub - Osiris-Team/jSQL-Gen: Java SQL code generator. SQL and OOP finally unit...

 1 year ago
source link: https://github.com/Osiris-Team/jSQL-Gen
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

jSQL-Gen

Java SQL code generator. SQL and OOP finally united.

68747470733a2f2f707265766965772e726564642e69742f64346363336a613837323639312e706e673f77696474683d3131353426666f726d61743d706e67266175746f3d7765627026733d39623065636165636166363038376134643462396563623036356461353837653738326436326635

Usage

  • Download and run the latest release.
  • Create a database, tables and their columns via the GUI. Its recommended to name your tables like you name your regular Java objects, and your columns like your objects' fields.
  • Press Generate Code and add the code to your project. The generated code/files can also be found in the generated folder (press Show Data on the first tab, to open the location).
  • Open Database.java and fill in your database credentials, and run your app.

What?

  • Generates one class/object for each table.
  • The generated object contains static methods like get() delete() update() add() etc... to interact with the table.
  • The generated object contains fields for each table column obj.id obj.name etc....
  • The generated code does not require any third party libraries and should work with Java 8 or higher. It uses the built in JDBC API for SQL queries.

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK