Re: [appengine-java] Null Pointer Exception at the time of transaction commit.

2010-02-19 Thread Sushama Khadilkar
Thanks, But i'm not getting wat are u saying so can u plz explain clearly... -- 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 google-appengine-j...@googlegroups.com. To unsubscribe from this grou

Re: [appengine-java] Null Pointer Exception at the time of transaction commit.

2010-02-17 Thread Stephan Hartmann
You should make your entity classes visible to the build path of your client project. 2010/2/17 Sushama Khadilkar > > > Thanks Again Stephan Hartmann,But can u tell me one thing , >>> >> cant we use List or Set or something else for the return type of the > addEmp() method. because while using

Re: [appengine-java] Null Pointer Exception at the time of transaction commit.

2010-02-17 Thread Sushama Khadilkar
Thanks Again Stephan Hartmann,But can u tell me one thing , >> > cant we use List or Set or something else for the return type of the addEmp() method. because while using Set as a return type in Async & in greeting Service i m gettin a error. so plz can u tell it me. Plz Plz. The output is::

Re: [appengine-java] Null Pointer Exception at the time of transaction commit.

2010-02-17 Thread Stephan Hartmann
In your addEmp method i would add dept.getEmployee().add(e) after you instantiate your new employee object. If i remember correctly, according to the JPA spec, managing relationships is up to you. BTW i would refactor the name of the list field "employee" to "employees" (and its get and set metho

Re: [appengine-java] Null Pointer Exception at the time of transaction commit.

2010-02-17 Thread Sushama Khadilkar
Thanks Stephan Hartmann, But there is another problem now . Does the DataStore will have a Foreign Key of Department in Employee? And , is it visible in the Employee table? Following are my POJO's :: /Department/// i

Re: [appengine-java] Null Pointer Exception at the time of transaction commit.

2010-02-17 Thread Stephan Hartmann
Could you please provide the source of your Employee and Department classes? And AFAIK you must not use full qualified class names in queries but the simple class name ("Department" only). Regards, Stephan 2010/2/16 Sushama Khadilkar > package com.wissen.enterprisebysush.server; > > import java

[appengine-java] Null Pointer Exception at the time of transaction commit.

2010-02-16 Thread Sushama Khadilkar
package com.wissen.enterprisebysush.server; import java.util.List; import javax.jdo.JDOHelper; import javax.jdo.PersistenceManager; import javax.jdo.PersistenceManagerFactory; import javax.jdo.Transaction; import javax.persistence.EntityManager; import javax.persistence.EntityManagerFactory; impo