Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danilodeluca/cloudsql-hibernate
Java Project using AppEngine CloudSQL, hibernate, JPA and RestEasy. No usage of any injection framework (spring...)
https://github.com/danilodeluca/cloudsql-hibernate
appengine cloudsql gae google-appengine hibernate injection-framework java jpa resteasy
Last synced: 7 days ago
JSON representation
Java Project using AppEngine CloudSQL, hibernate, JPA and RestEasy. No usage of any injection framework (spring...)
- Host: GitHub
- URL: https://github.com/danilodeluca/cloudsql-hibernate
- Owner: danilodeLuca
- Created: 2017-01-25T17:18:24.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2017-01-25T18:01:08.000Z (almost 8 years ago)
- Last Synced: 2024-12-12T20:37:55.000Z (22 days ago)
- Topics: appengine, cloudsql, gae, google-appengine, hibernate, injection-framework, java, jpa, resteasy
- Language: Java
- Homepage:
- Size: 8.79 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# CloudSql + Hibernate + Jpa + RestEasy -> No Injection Framework
## Requirements
* [Apache Maven](http://maven.apache.org) 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:```sh
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
```
* Execute "scripts/sql/start_bd.sql"* CloudSQL tutorial
https://cloud.google.com/appengine/docs/java/cloud-sql/## 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