GithubHelp home page GithubHelp logo

isabella232 / appengine-cloudsql-native-mysql-hibernate-jpa-demo-java Goto Github PK

View Code? Open in Web Editor NEW

This project forked from googlecloudplatform/appengine-cloudsql-native-mysql-hibernate-jpa-demo-java

0.0 0.0 0.0 13 KB

Native MySQL Connections from App Engine (Java)

License: Apache License 2.0

Java 100.00%

appengine-cloudsql-native-mysql-hibernate-jpa-demo-java's Introduction

Google Cloud SQL/App Engine native Hibernate JPA demo

This demo contains an example program that shows how to use Hibernate JPA with native MySQL connections to connect from Google App Engine to Google Cloud SQL both in development mode and on App Engine.

Requirements

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

Clone this repository to a local directory. Maven will download all the other dependencies.

Deploying

To build, run:

mvn package

Local deployment

Make sure the demo database exists on the local MySQL server.

To start the app, use the App Engine Maven Plugin that is included in this demo. Just run the command:

mvn appengine:devserver

App Engine deployment

In pom.xml update the following properties:

  • appengine.app.appId to point to your App Engine application ID
  • cloudsql.url to point to your Cloud SQL instance by replacing your-instance-name with the full name of your instance (this looks either like my_project:my_instance for non-domain specific instances or like my_domain:my_project:my_instance for the domain-specific ones).

Make sure the demo database exists on the Cloud SQL instance.

To deploy the app run the following command:

mvn appengine:update

Contributing changes

Licensing

appengine-cloudsql-native-mysql-hibernate-jpa-demo-java's People

Contributors

ludoch avatar razvanm avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.