Skip to content

Instantly share code, notes, and snippets.

@gokman
Created February 2, 2019 14:10
Show Gist options
  • Save gokman/a40fbbd873c456941c9697f49467ab7d to your computer and use it in GitHub Desktop.
Save gokman/a40fbbd873c456941c9697f49467ab7d to your computer and use it in GitHub Desktop.
create entity class on intellij
open intellij
go to menu file->project structure
click facet
add jpa
after that you will see persistence window
right click project on persistence window
click assign data source and choose datasource
right click again and click generate persistence mapping -> by database schema
view tables and entities
click ok.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment