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

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 sush.khadil...@gmail.com package

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///

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 method).

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 SetEmployee 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