I've an appengine connected android project with GCM working. Now, I want to connect Mysql instance, on my localhost, to the appengine application. I've followed these instructions, but in vain.
The table on local mysql instance looks like this
+---------+-------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+---------+-------------+------+-----+---------+----------------+
| _ID | bigint(5) | NO | PRI | NULL | auto_increment |
| COLUMN1 | varchar(20) | NO | | NULL | |
+---------+-------------+------+-----+---------+----------------+
I'm trying to add a row to this table using endpoints. However, the appengine project, repeatedly, keeps adding rows to the local datastore.
Also, in the documentation EclipseLink is used. On one hand, datanucleus libraries are added by default to the appengine project and then JPA with EclipseLink documentation comes about. The documentation is confusing.
Should I use datanucleus or EclipseLink? I've tried both the ways and have failed. Endpoints use Datanucleus libraries. For example Endpoints use JPACursorHelper class which is in Datanucleus. What I'm trying to achieve is add a row to the above table, using endpoints, on the local appengine development.
Please note:
- I've an annotated Test.java class for which I've generated an endpoint class.
- I've added
<class>tag to the persistence.xml. - Annotation processor is configured with Datanucleus.
- The Database Development perspective shows that local instance is connected.
- My preference is Datanucleus.