Thanks.

I spotted the error. I did not do a close() on the EntityManager (or
perhaps a flush would also work).


On Dec 30, 12:42 am, Raphael André Bauer
<[email protected]> wrote:
> On Wed, Dec 30, 2009 at 12:51 AM, newbie100 <[email protected]> wrote:
> > Hi,
>
> > I have just written my very first app, and it attempts to store an
> > object using JPA.
>
> > The code is as below. with the Employee and EMF classes copy / pasted
> > from the docs.
> > These lines were added to a default project, created with GWT support.
>
> > <snip>
> >                Employee emp = new Employee();
> >                EMF.get().createEntityManager().persist(emp);
> > </snip>
>
> > I have created the persistance.xml file, and get no error when I run.
>
> > My Question is :-
> > =============
>
> >  I see no obejcts in the Datastore Viewer (admin console) pages (Both
> > production and dev mode)
>
> > Is this something that is not currently implemented in the console ?
>
> > Or (more likely) could it be a bug in my code ?
>
> It's an error in your app. Try to begin with the tutorials provided at
> the App Engine site to get a feeling how things work...
> ra- Hide quoted text -
>
> - Show quoted text -

--

You received this message because you are subscribed to the Google Groups 
"Google App Engine for Java" 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-java?hl=en.


Reply via email to