google app engine - Unable to integrate Cloud SQL with the appengine connected android project? -


i've appengine connected android project gcm working. now, want connect mysql instance, on localhost, appengine application. i've followed these instructions, in vain.

the table on local mysql instance looks this

+---------+-------------+------+-----+---------+----------------+ | field   | type        | null | key | default |          | +---------+-------------+------+-----+---------+----------------+ | _id     | bigint(5)   | no   | pri | null    | auto_increment | | column1 | varchar(20) | no   |     | null    |                | +---------+-------------+------+-----+---------+----------------+ 

i'm trying add row table using endpoints. however, appengine project, repeatedly, keeps adding rows local datastore.

also, in documentation eclipselink used. on 1 hand, datanucleus libraries added default appengine project , jpa eclipselink documentation comes about. documentation confusing.

should use datanucleus or eclipselink? i've tried both ways , have failed. endpoints use datanucleus libraries. example endpoints use jpacursorhelper class in datanucleus. i'm trying achieve add row above table, using endpoints, on local appengine development.

please note:

  1. i've annotated test.java class i've generated endpoint class.
  2. i've added <class> tag persistence.xml.
  3. annotation processor configured datanucleus.
  4. the database development perspective shows local instance connected.
  5. my preference datanucleus.

your "testendpoint" class won't work since appengine/datastore-specific (using jpacursorhelper class). need write class using standard jpa features ... whatever method trying do. use gae-specific features , lose portability.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -