Skip to content

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

License

Notifications You must be signed in to change notification settings

majora2007/easy-java

Repository files navigation

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.

About

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

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published