Skip to content

Instantly share code, notes, and snippets.

@phstudy
Last active August 29, 2015 13:57
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phstudy/9579143 to your computer and use it in GitHub Desktop.
Save phstudy/9579143 to your computer and use it in GitHub Desktop.
Database Reverse Engineering
// MySQL sample database
// https://dev.mysql.com/doc/employee/en/employees-installation.html
// https://launchpad.net/test-db/
project --topLevelPackage org.phstudy --projectName DBRE --java 6 --packaging JAR
persistence setup --database MYSQL --provider HIBERNATE --userName root --databaseName employees
database reverse engineer --package ~.model --schema PUBLIC
addon install id --searchResultId 01
database reverse engineer --package ~.model --schema PUBLIC
json all --deepSerialize
web mvc json setup
web mvc json all --package ~.rest
web mvc setup
web mvc all --package ~.web
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment