Hello Ian,
>I presume that you expected to make some objects persistent using JDO.
>Do you have any idea which part(s) of your config or code could be
>responsible?

Yes, I am using JDO and I find a way to make the objects persistent
already. They saved into a table with the same name as their className
in the persistent class. I guess what I missed was coding the closing
of the persistent manager.

>I use Key as Encoded String for for all my persistent entities. As the
>GAE documentation states:
in my case, I used Long as the datatype for my primary keys since
using Key as the datatype for your primary key field loose the ability
of your models to be serializable to be used in the client side(using
GWT) since Key is not emulated in GWT. As a benefit I have the same
unified model object to be used in the client side and in the server
side.  And if you really have to use Key you could use gilead which I
chose not since I didn't figure out how  they do things.

One more thing I notice is that:
In google app engine, the BigTable JDO implementation is that when you
create an instance of a persistent object the object is automatically
assigned with a primary key field value, while in datanucleus  rdbms
implementation assigned the primary key field values just when the
object is persisted in the database.


On Jan 23, 12:59 am, Ian Marshall <[email protected]> wrote:
> IKAI
> ----
> Thank you for letting me know about the NetBeans support for Google
> App Engine on Sun's Project Kenai. I'm glad that this worked for you.
> Unfortunately, I couldn't get this to work for me.
>
> Installing the NetBeans plug-in broke my app building, and I couldn't
> get the NetBeans GAE web server to run. My NetBeans project's "ant-
> deploy.xml" had been automatically altered to point to my "C:\[...]
> \appengine-java-sdk-1.3.0\config\user\ant-macros.xml", which needed
> its "appengine.sdk.home" property amending (as one would expect since
> this is an example file only). I also could not see how to amend the
> plug-in's ".jar" file list, in order to stop double-jar contention
> during building.
>
> The long and short of it is is that I have now uninstalled this plug-
> in, repaired most of the minor damage left after the uninstall, and
> will press on debugless-on-GAE for now (dipping into debugging-with-
> MySQL-and-Tomcat when needed). Oh well.
>
> Should Google launch an official NetBeans GAE plug-in in the future, I
> would welcome that!
>
> IVANCERAS
> ---------
> ... but I don't see any record written on it. What am I missing?
> ----------------------------------------------------------------
> I presume that you expected to make some objects persistent using JDO.
> Do you have any idea which part(s) of your config or code could be
> responsible?
>
> I am trying to make my application to be deployable not just on google
> app engine
> --------------------------------------------------------------------------- 
> ------
> I use Key as Encoded String for for all my persistent entities. As the
> GAE documentation states:
>
> "Similar to Key, but the value is the encoded string form of the key.
> Encoded string keys allow you to write your application in a portable
> manner and still take advantage of App Engine datastore entity
> groups."
>
> I trust that my app is not BigTable dependent, but any other non-
> Google datastore would have to be "Java-and-JDO-friendly" for my app
> to work without major changes. (As I said before, there are some
> differences between MySQL and BigTable for JDO data exchange (for
> example: finding an object by ID). I have overcome these in config-
> directed code.)

-- 
You received this message because you are subscribed to the Google Groups 
"Google App Engine" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/google-appengine?hl=en.

Reply via email to