Tutorial to TJW - IFCE Maracanau
- Java installed
- MySQL installed
# paste this in your terminal
$ git clone git@github.com:NityanandaBarbosa/Classroom-JPA.git
With eclipse pre installed click on "file" and go to the "import" option, choose the "existing maven projects" option, a pop-up will appear on your screen and in the field root directory click on "browser" and choose the project and click "finish".
Click with right click on Clasroom-Jpa folder, move your mouse to "Maven" then click on "Update Project", a pop-up will appear on your screen, then you must select the project and check the option 'Force Update of Snapshots/Releases',after these click 'Ok'.
Once again, taking into account that the Mysql database is already installed, you must open the persistence.xml, then change "javax.persistence.jdbc.user" and "javax.persistence.jdbc.password" according your MySQL credentials.
Basically what you should do now is open src/main/java and look for the package called clients, you'll see a file named as ClientAluno.java then you click with right click, move your mouse to "Run As" then click on "Java application".
- Author - Nityananda Barbosa