Skip to content

Java Project using AppEngine CloudSQL, hibernate, JPA and RestEasy. No usage of any injection framework (spring...)

Notifications You must be signed in to change notification settings

danilodeLuca/cloudsql-hibernate

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CloudSql + Hibernate + Jpa + RestEasy -> No Injection Framework

Requirements

  • Apache Maven 3.0 or greater
  • a local MySQL server (for running locally with devserver)
  • JDK 7+

MySql Server

  • Install: sudo apt-get install mysql-server
  • Commands:
   sudo /usr/local/Cellar/mysql/5.7.17/support-files/mysql.server start
   /usr/local/Cellar/mysql/5.7.17/support-files/mysql.server restart

Appengine

  • Run Local: mvn appengine:devserver
  • Deploy Dev: mvn appengine:update

MVC

  1. REST(RestEasy):
    • Name: *RS.java
    • Não deve conter lógica de negócio, apenas validação de parâmetros se necessário e parse de JSONs
  2. SERVICE:
    • Name: *Service.java
    • Extends: Service.java
    • Este é o lugar em que a lógica de negócio deve acontecer, pode se comunicar com REPOSITORY e INTEGRATION.
  3. REPOSITORY:
    • Name: *Repository.java
    • Extends: BaseRepository.java
    • Este lugar é responsável por fazer queries e persistir dados no BD

About

Java Project using AppEngine CloudSQL, hibernate, JPA and RestEasy. No usage of any injection framework (spring...)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages