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
- Host: GitHub
- URL: https://github.com/majora2007/easy-java
- Owner: majora2007
- License: mit
- Created: 2020-05-02T14:11:29.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2022-12-08T04:06:45.000Z (about 3 years ago)
- Last Synced: 2025-02-12T12:17:55.699Z (10 months ago)
- Topics: automation, java, pojobuilder, pojos, python, rowmapper, sql
- Language: Python
- Size: 79.1 KB
- Stars: 1
- Watchers: 2
- Forks: 0
- Open Issues: 9
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.