I'm using App engine JDO, for storing my data in database and I use appengine plugin for eclipse for deploying my application.
I created some bean classes and deployed. While deploying, I did not choose any version of DataNucleus JDO/JPA. It was empty as shown in the picture.
As a result, I could see my datastore kinds and entities got created with the strange casing, which was not same I named those. (Even I could find the same in development environment as well).
I have given my kind name as WorkUser, but it got created like WORKUSER (upper case), similarly, all field names, for eg., I created accessToken in my bean class, it got turned into ACCESS_TOKEN.
Although everthing works fine for some days, I wanted to migrate my JDO to JDO 3.0 and now, while deploying, I have chosen Datanucleus version to v2.
Did necessary configurations for migration. The issue I found now, is none of the entities are available to query from code. I could see all kinds and entities present in appengine console, but, when I'm trying to fetch the data, I'm getting empty results.
How can I make my data to be fetchable ?
Any help would be greatly needed and appreciated. Thanks.
Did necessary configurations for migration. The issue I found now, is none of the entities are available to query from code. I could see all kinds and entities present in appengine console, but, when I'm trying to fetch the data, I'm getting empty results.
How can I make my data to be fetchable ?
PersistenceManager pm = PersistenceManagerUtil.getPersistanceManager();
Query q = pm.newQuery(UserWorkLogs.class);
The above code gave me all entities in the 'UserWorkLogs' JDO, before migration. I was getting empty results after migrating to JDO 3.0
But, I'm able to get the data even after migration with the following code,
PersistenceManager pm = PersistenceManagerUtil.getPersistanceManager();
Query q = pm.newQuery(USERWORKLOGS.class);
Could you please let me know what's the reason behind changing the case of Kind and property names.?
Thank for your response Vinny.
Could you please let me know what's the reason behind changing the case of Kind and property names.?