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:
- i've annotated test.java class i've generated endpoint class.
- i've added
<class>
tag persistence.xml. - annotation processor configured datanucleus.
- the database development perspective shows local instance connected.
- 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
Post a Comment