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:
- entity "Application" - Name of entity
- 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.