An open API service indexing awesome lists of open source software.

https://github.com/majora2007/easy-java

I wrote this program because I was tired of writing POJOs from SQL then having to write the RowMapper afterwards. This simple program generates the Entity POJO and RowMapper
https://github.com/majora2007/easy-java

automation java pojobuilder pojos python rowmapper sql

Last synced: 9 months ago
JSON representation

I wrote this program because I was tired of writing POJOs from SQL then having to write the RowMapper afterwards. This simple program generates the Entity POJO and RowMapper

Awesome Lists containing this project

README

          

# Easy Java

I wrote this program because I was tired of writing POJOs from SQL then having to write the RowMapper afterwards. This simple program generates the Entity POJO and RowMapper given the following:

1. entity "Application" - Name of entity
2. data "C:/data.txt" - A pipe separated export of the data. You only need header and 1 row of data.

Will generate Entity.java and EntityRowMapper.java in directory invoked from.

example: python easyjava.py --entity ApplicationGroup --data "C:/Users/majora2007/Desktop/testdata.txt"

Word list came from:
https://raw.githubusercontent.com/first20hours/google-10000-english/master/google-10000-english-no-swears.txt

Build:
//pyinstaller --onefile --add-data "templates/*.*;./templates" --add-data "words.txt;." easyjava.py
Use:
pyinstaller easyjava.spec

Tip: For compiling with Gooey:
https://github.com/chriskiehl/Gooey/wiki/step-by-step-guide:-python3-gooey-and-pyinstaller

TODO:
- Idea: Show a preview and allow a mapping change before generating code.