6
GitHub - Osiris-Team/jSQL-Gen: Java SQL code generator. SQL and OOP finally unit...
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.
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 thegenerated
folder (pressShow 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.
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK