Skip to content

Latest commit

 

History

History
24 lines (16 loc) · 1010 Bytes

README.md

File metadata and controls

24 lines (16 loc) · 1010 Bytes

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.